• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Syslog levels

FUBAR

Senior member
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?
 
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.
 
Back
Top