Hi All
I'm looking for a way to be able to log messages generated by a network host onto my CentOS 5.2 box into an individual file.
Now setting up syslog (I'm using the default sysklogd for CentOS) is the easy part; I've ensured that the following line is present in my /etc/sysconfig/syslog file:
Code:
SYSLOGD_OPTIONS="-m 0 -r"
This works a treat... the only issue is that the network host creates the following types of messages (i.e. Facilities and Priorities):
Code:
local7.warn
auth.warn
kern.warn
auth.info
... the problem that I have is that these get put into the same file as anything else using these matching facilities (local7 being a good example as this logs by default to /var/log/boot.log). What I'd like to do is be able to filter the incoming messages by IP address as well. So for example, I'd like to say "if the syslog message is coming from 192.168.1.11 and has local7.warn as the facility & priority log it to
/var/log/192.168.1.11.log"
I've done a lot of looking around but have had no joy... can anyone tell me to RTFM in the right direction?
Thanks for reading! Simp.