My SnapGear (now McAfee) SG560 (firmware Version 4.0.10) has a "remote system log" feature, which can send syslog-type data to a host in my network. It's working, but writing to /var/log/messages. I'd like it to store this information in a different file. I think that knowing the facility, I can change syslog.conf, however Googling hasn't turned anything up.
What is the "facility" for system log?
In addition to the clues given in the question/answers that I believe is at least a very close relative to this question, you can also inspect the traffic that is going to your syslog collector using tcpdump or whatever your favorite packet inspector is. Within the packets for syslog, there is a number encased in angle brackets
<
and>
. That number is the syslog priority level. Priority level is determined with the following equation:(facility # * 8) + (syslog level)
.Knowing that equation, you can deconstruct the priority number and arrive at the facility number by simply dividing the priority number by 8. The remainder will be the severity level. For example,
<56>
will divide into 7 with a 0 remainder. That equates to a facility ofnetwork news subsystem
with a syslog level ofEmergency
.For reference, here are the syslog facilities:
For reference, here are the severity levels:
For a detailed explanation of syslog facilities, ways to manage syslog and even some of the tools to use for analysis, here's a great whitepaper on Cisco's website.