- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- syslog scanning
Operating System - Linux
1822034
Members
3452
Online
109639
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2003 01:00 AM
тАО05-13-2003 01:00 AM
syslog scanning
Hi
I would like to scan the syslog file continously and page me the new line as and when a new line is added to the syslog file.Does anybody have a perl script for doing this ?
regards
Hrishy
I would like to scan the syslog file continously and page me the new line as and when a new line is added to the syslog file.Does anybody have a perl script for doing this ?
regards
Hrishy
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2003 01:08 AM
тАО05-13-2003 01:08 AM
Re: syslog scanning
You could use File::Tail (Perl extension for reading from continously updated files) for the tail -f.
http://search.cpan.org/search?query=File-tail&mode=all
Regards,
Sergejs
http://search.cpan.org/search?query=File-tail&mode=all
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2003 01:27 AM
тАО05-13-2003 01:27 AM
Re: syslog scanning
I suggest you check
LogDog http://caspian.dotconf.net/menu/Software/LogDog/
LogScan http://www.parkridge.on.ca/lsindex.html
see more http://www.netadmintools.com/art127.html
regards,
Vitaly
LogDog http://caspian.dotconf.net/menu/Software/LogDog/
LogScan http://www.parkridge.on.ca/lsindex.html
see more http://www.netadmintools.com/art127.html
regards,
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2003 12:56 AM
тАО05-14-2003 12:56 AM
Re: syslog scanning
Whithout any modul you can do the following:
open(LF, "tail -f $LOGFILE |") || die "no logfile !";
while () {
.
.
}
So you open the $LOGFILE with "tail -f", and
the "|" send it into a pipe.
Inside the "while" you can get the new lines
and work with them.
open(LF, "tail -f $LOGFILE |") || die "no logfile !";
while (
.
.
}
So you open the $LOGFILE with "tail -f", and
the "|" send it into a pipe.
Inside the "while" you can get the new lines
and work with them.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP