collect messages from syslog memory
syslogc collects messages from the
syslogd(8) memory buffer specified by the
syslogc to work,
syslogd(8) must be configured with one or more memory buffer logs
syslog.conf(5) for details) and have a reporting socket
location specified on the commandline (using the
option to syslogd(8)).
syslogc will query the
specified log and return all entries to standard output.
The options are as follows:
- Request that the log buffer be cleared without reading it.
- Request that the log buffer be cleared once it has been read.
- Print out the last 10 lines and read from the buffer continuously. Like
-foption in tail(1).
- Print the specified number of lines from the end of the buffer.
- Check whether the specified log has overflowed. If the log has overflowed, then a message will be printed to stdout(4) and the exit status will be set to 1.
- Request a list of available logs. If a log has overflowed an asterisk
*’) will be appended to its name.
- Specify alternate reporting socket location (the default is /var/run/syslogd.sock).
syslog(3), syslog.conf(5), syslogd(8)
syslogc command first appeared in
The buffer space used for writing logs through the socket is limited. Thus it is possible to lose logs when running in continuous mode. Losses are reported on standard error.