Assigning a log file per remote IP

From: Pieter De Wit <pieter_at_vodacom.co.za>
Date: Sun, 15 Apr 2007 09:31:00 +0200

Hello Guys,
 
I am sorry if this was covered before, but the search function is not
working so I can't check all the archives.

I have a machine that I would like to run as a Syslog "server". I have
changed the startup options to include -r and the devices are sending
the log info to the server. I can see the info in my "all" log (in
/etc/syslog.conf I have a line: *.* /var/log/all.log)

Now - what I would like to do is have something like the following:

All messages from 192.168.0.1 to go into /var/log/router.log
All messages from 192.168.0.2 to go into /var/log/firewall.log
All messages from 192.168.0.3 to go into /var/log/device.log

etc etc etc

Now everyone is saying that I must look at syslog-ng for this but I
don't want to. There must be a way to get sysklogd to do this ? Yes ?

Oh yes - I am running version : 1.4.2_pre20061230

Thanks,

Pieter De Wit
“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.co.za/legal/email.jsp "
Received on Sun Apr 15 2007 - 09:31:00 CEST

This archive was generated by hypermail 2.2.0 : Sun Apr 15 2007 - 09:31:06 CEST