The docs give a fixed list of facilties for syslog, but it's clearly possible to have more (http isn't on the list). Do I just describe it in the conf file and start using it or is is more involved? (It's an ecommerce system and I want to log the payment activities better.)
Asked
Active
Viewed 5,635 times
3 Answers
4
The syslog protocol only allows the predefined facilities defined in RFC 3164. Most (if not all) syslog daemons will process messages with different facility identifiers as corrupt.
But you can easily use the facilities local0 through local7 for your custom logging needs, which is what they are there for.
-
How does Apache do it? – Michael Lorton Oct 22 '11 at 15:01
-
3It doesn't. Apache httpd either writes its own log files (not using the system's syslogd) or uses the configured facility (see documentation on ErrorLog: http://httpd.apache.org/docs/current/mod/core.html#errorlog) – joschi Oct 22 '11 at 15:44
0
You can use a filter function in the aforementioned tools. You can also use a syslog manager such as LogZilla to filter search and graph results based on facility.