Hi all! I'm still googling for this, but after quite a while I'm no closer, so I figured I'd ask you guys: 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. Thanks in advance! Fred PS: We're speaking of Centos 5.7 here. -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- But God demonstrates his own love for us in this: While we were still sinners, Christ died for us. ------------------------------- Romans 5:8 (niv) ------------------------------
Am 03.12.2011 00:04, schrieb fred smith:> Hi all! > > I'm still googling for this, but after quite a while I'm no closer, so > I figured I'd ask you guys: > > 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.this is why the ost-column exists -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20111203/65552e4b/attachment.sig>
Vreme: 12/03/2011 12:04 AM, fred smith pi?e:> Hi all! > > I'm still googling for this, but after quite a while I'm no closer, so > I figured I'd ask you guys: > > 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. > > Thanks in advance! > > Fred > > PS: We're speaking of Centos 5.7 here. >I am in professional wireless business. My solution was to deinstall syslog and install syslog-ng, it's supports separation based on IP, name, etc.. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant
On Sat, Dec 03, 2011 at 12:36:48AM +0100, Reindl Harald wrote:> > > Am 03.12.2011 00:04, schrieb fred smith: > > Hi all! > > > > I'm still googling for this, but after quite a while I'm no closer, so > > I figured I'd ask you guys: > > > > 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. > > this is why the ost-column exists >Could I get you to elaborate on that, please? -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- I can do all things through Christ who strengthens me. ------------------------------ Philippians 4:13 -------------------------------
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