Syslog levels

FUBAR

Senior member
Oct 11, 1999
618
0
0
Does anyone out there know how to determine what syslog level an alert is coming in as? Here's my situation:

Like just about everyone else, I have a broadband router (mine is netgear) with a couple of machines. I have my linux server sitting back here that I have catching all of the router messages.

What I want to do is take the messages from the router and stuff them into their own file, if possible. They are coming into /var/log/messages which makes me think they are coming in as *.info . Is this correct?

My syslog is standard RedHat 7.1 with the only mod being to add the -r to the /etc/sysconfig/syslog file (I think that's the path) to enable remote logging.

Anyone have knowlege of this type of thing?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
In /etc/syslogd.conf you configure what levels go to which file, so just tell it to put all .alert level messages in a certain file. But that file will get alert or greater messages from your router and the Linux box, I don't think you can filter the messages by server name with the default syslogd.

There are other syslog implementations like syslog-ng which allow more explicit directives for splitting up the logs, I havn't used any of them but I believe you should be able to split up the logs better with them.