| Author |
Message |
sednet
Joined: 17 Mar 2004
Posts: 106
Location: Europe
|
| Posted: Thu Mar 13, 2008 4:06 am Post subject: Syslog monitoring |
|
|
Whats the best way to monitor syslog data from around 50 linux machines? What do you use?
Ideally I'd like to specify a list of regular expressions of stuff to ignore and get told about everything else one a day. |
|
| Back to top |
|
encode
Joined: 25 Feb 2005
Posts: 18
|
| Posted: Thu Mar 13, 2008 4:12 am Post subject: |
|
|
Admittedly I only monitor a few linux machines, but I find Logwatch to be quite effective.
Basically it parses the syslog data into a report, and emails it to a specified email address.
I guess reading 50 of those would quickly become tedious though, so it's probably not too much benefit in your situation. |
|
| Back to top |
|
sednet
Joined: 17 Mar 2004
Posts: 106
Location: Europe
|
| Posted: Thu Mar 13, 2008 4:24 am Post subject: Syslog monitoring |
|
|
encode wrote: Admittedly I only monitor a few linux machines, but I find Logwatch to be quite effective.
Basically it parses the syslog data into a report, and emails it to a specified email address.
I guess reading 50 of those would quickly become tedious though, so it's probably not too much benefit in your situation.
I looked at logwatch but didn't see how to make it do what I want. The problem seems to be that I don't know what I'm looking for, only what should be ignored. |
|
| Back to top |
|
irgeek
Joined: 21 Jun 2003
Posts: 99
Location: Denver, CO
|
| Posted: Thu Mar 13, 2008 4:32 am Post subject: Where are the hosts? |
|
|
If the hosts are all on the same LAN (or all have very good Internet connectivity) you can have syslog on each host forward entries to a central monitoring host. You can then set up that central monitoring host to do daily log rotations and have a post-rotate script that parses the previous day's logs and emails you the results. The script to do the parsing should be pretty easy to write.
At least, that's how I'd do it.
--James |
|
| Back to top |
|
zibeli
Joined: 25 Apr 2004
Posts: 9
|
| Posted: Fri Mar 14, 2008 9:28 am Post subject: Re: Where are the hosts? |
|
|
irgeek wrote: If the hosts are all on the same LAN (or all have very good Internet connectivity) you can have syslog on each host forward entries to a central monitoring host. You can then set up that central monitoring host to do daily log rotations and have a post-rotate script that parses the previous day's logs and emails you the results. The script to do the parsing should be pretty easy to write.
At least, that's how I'd do it.
--James
And Code: grep -v -f regexlist centrallogfile might work as the script |
|
| Back to top |
|
| |