SYSLOG-NGSection: Maintenance Commands (8) |
SYSLOG-NGSection: Maintenance Commands (8) |
NOTE: This file is not up to date. Please refer to the html documentation.
syslog-ng [ -dvV ] [ -f <config-filename> ] [ -p <pid-filename> ] [ -C <chroot-dir> ]
syslog-ng reads and logs messages to the system console, log files, other machines and/or users as specified by its configuration file.
The configuration file is read at startup and is reread after receipt of a hangup (HUP) signal. When reloading the configuration file, all destination files are closed and reopened as appropriate. For more information about the configuration file, see syslog-ng.conf(5).
Typically messages are sent to syslog-ng via a Unix domain socket (/dev/log) or via UDP, to port 514 or to whatever syslog/udp is defined to be in /etc/services. To receieve messages from the kernel, /dev/klog is opened for reading.
Messages sent to syslog-ng should be an entire line, prefixed by a priority code in between '<' and '>'. Definititions of the recognised values can be found in the include file <sys/syslog.h>.
syslog-ng can be configured to pass messages on to other syslog-ng's and when doing so, it sends the message on with the priority as a prefix.
It is not necessary to terminate a message with a line feed or carriage return.
NOTE: as of syslog-ng 1.1.11, hashing is not supported yet.
syslog-ng supports keeping of hash values along side the actual log file. To initialize hashing for the first time, you will need to use the program genh0, which generates the initial hash for a log file based on random salt and the passphrase you enter. The password (or pass phrase) must be at least 20 characters and at most 128 characters. For security reasons it is NOT saved in any file and IT SHOULD NOT be put in any file. Wiriting it down on paper, if you have to, is much more acceptable so long as the paper is "secure". The salt used is saved to /etc/syslog-ng/hashlog-filename.salt and the result is saved to hashlog-filename.H0. As each line is received by syslog-ng, an matching entry is written to hashlog-filename.sha1. You can use checkhash program to check if all the log entries are intact.
When syslog-ng receives a HUP signal or is about to exit, it saves all the hashing seeds out to the relevaant .H0 file. From time to time, syslog-ng will also save all the current values as a "checkpoint".
If you find any, please send email to me at bazsi@balabit.hu