Quick links About sysklogd Syntax Examples Related commands Linux / Unix main page About sysklogd Linux system logging utilities. Sysklogd provides two system utilities which provide support for system logging and kernel message trapping. Support of both Internet and unix domain sockets enables this utility package to support both local and remote logging. System logging is provided by a version of syslogd derived from the stock BSD sources. Support for kernel logging is provided by the klogd utility which allows kernel logging to be conducted in either a standalone fashion or as a client of syslogd. Syntax syslogd [ -a socket ] [ -d ] [ -f config file ] [ -h ] [ -l hostlist ] [ -m interval ] [ -n ] [ -p socket ] [ -r ] [
-s domainlist ] [ -v ]
| -a socket | Using this argument you can specify additional sockets from that syslogd has to listen to. This is needed if you're going to let some daemon run within a chroot() environment. You can use up to 19 additional sockets. If your environment needs even more, you have to increase the symbol MAXFUnix within the syslogd.c source file. An example for a chroot() daemon is described by the people from OpenBSD at http://www.psionic.com/papers/dns.html. |
| -d | Turns on debug mode. Using this the daemon will not proceed a fork(2) to set itself in the background, but opposite to that stay in the foreground and write much debug information on the current tty. See the DEBUGGING section for more information. |
| -f config file | Specify an alternative configuration file instead of /etc/syslog.conf, which is the default. |
| -h | By default syslogd will not forward messages it receives from remote hosts. Specifying this switch on the command line will cause the log daemon to forward any remote messages it receives to forwarding hosts which have been defined. |
| -l hostlist | Specify a hostname that should be logged only with its simple hostname and not the fqdn. Multiple hosts may be specified using the colon (``:'') separator. |
| -m interval | The syslogd logs a mark timestamp regularly. The default interval between two -- MARK -- lines is 20 minutes. This can be changed with this option. Setting the interval to zero turns it off entirely. |
| -n | Avoid auto-backgrounding. This is needed especially if the syslogd is started and controlled by init(8). |
| -p socket | You can specify an alternative unix domain socket instead of /dev/log. |
| -r | This option will enable the facility to receive message from the network using an Internet domain socket with the syslog service (see services(5)). The default is to not receive any messages from the network. This option is introduced in version 1.3 of the sysklogd package. Please note that the default behavior is the opposite of how older versions behave, so you might have to turn this on. |
| -s domainlist | Specify a domainname that should be stripped off before logging. Multiple domains may be specified using the colon (``:'') separator. Please be advised that no sub-domains may be specified but only entire domains. For example if -s north.de is specified and the host logging resolves to satu.infodrom.north.de no domain would be cut, you will have to specify two domains like: -s north.de:infodrom.north.de. |
| -v | Print version and exit. |
Examples Not a command, this is a system utility configured through the system configuration file (often syslog.conf). Related commands dmesg sysinfo | |
| Resolved |
Were you able to locate the answer to your questions?
|
| |