HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Tools to monitor log files
Operating System - Linux
1828370
Members
2951
Online
109976
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
Forums
Discussions
Discussions
Discussions
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
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
04-03-2007 12:33 PM
04-03-2007 12:33 PM
Tools to monitor log files
Good afternoon;
Trying to find out how my fellow linux admins are monitoring their log files. Is anyone using swatch? If so where can I download swatch for redhat linux as4. Are there other log monitoring tools, tools that will work in the same vain as swatch, the ability to send a email when certain patterns are detected/noted in the log files.
Thank you for the input, will do my best to assign points.
Trying to find out how my fellow linux admins are monitoring their log files. Is anyone using swatch? If so where can I download swatch for redhat linux as4. Are there other log monitoring tools, tools that will work in the same vain as swatch, the ability to send a email when certain patterns are detected/noted in the log files.
Thank you for the input, will do my best to assign points.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 01:44 PM
04-03-2007 01:44 PM
Re: Tools to monitor log files
Shalom,
Since almost everybody needs something different, the best tool in my opinion are your own shell scripts.
You grep the log file, look for critical terms and use mail -s to send the output to email.
Example:
lbolts=$(grep -i lbolt /var/log/messages| wc -l)
lbolt(a hpux disk error)is searched for int he log and converted to a count.
if [ $lbolt -ge 1 ]
then
echo "Disk error" | mail -s "Disk Error" yourmail@your.net
fi
The if/fi loop should be self evident.
SEP
Since almost everybody needs something different, the best tool in my opinion are your own shell scripts.
You grep the log file, look for critical terms and use mail -s to send the output to email.
Example:
lbolts=$(grep -i lbolt /var/log/messages| wc -l)
lbolt(a hpux disk error)is searched for int he log and converted to a count.
if [ $lbolt -ge 1 ]
then
echo "Disk error" | mail -s "Disk Error" yourmail@your.net
fi
The if/fi loop should be self evident.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 01:56 PM
04-03-2007 01:56 PM
Re: Tools to monitor log files
'logwatch' (which should already be on your RH machine) does a fantastic job too.. and is fairly easily cusomizable.
It's just set to run once-a-day by default, but you can change that pretty easily.
It's just set to run once-a-day by default, but you can change that pretty easily.
One long-haired git at your service...
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP