Re: remote syslog question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 03.12.2011 00:04, schrieb fred smith:
> I've got my router using syslog on my centos box to log the router's
> system events. Works fine.
> 
> however, it mixes 'em into /var/log/messages along with the messages
> from the Centos box itself.
> 
> is there a way to separate them into itsown (set of??) files? So far
> I've not come up with anything.

Every syslog daemon I know of (even good old syslogd classic) is able
to direct messages to different files depending on their facility and
priority. Most routers send their messages with one of the "local"
facilities (local0 .. local7), though it's frequently neither
documented nor configurable, at least with the cheap consumer grade
models. OTOH, on a typical CentOS system little else uses the local*
facility. So chances are if you configure your syslog daemon to log
all of the local* facilities to a file /var/log/router and not to
/var/log/messages you'll end up with just the router messages in
/var/log/router.

HTH

-- 
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux