Skip to content

syslog plugin

Plugin name syslog
Type log
Callbacks config, log, shutdown
Status supported
Since 1.2
Copyright 2007 Florian Forster
License MIT License
Configuration collectd.conf(5)

The SysLog plugin receives log messages from the daemon and dispatches them to syslog(3). At version 5.1 and later, the Syslog plugin can also act as a consumer of Notifications if the NotifyLevel option is provided.

Currently, using LogLevel "debug" is only valid if the collectd sources are built with -DCOLLECT_DEBUG at compilation time.

Synopsis

 <Plugin "syslog">
   LogLevel "info"
   NotifyLevel "OKAY"
 </Plugin>

Dependencies

  • syslog(3)

See also

Configuration

Configuration options · from collectd.conf(5)

See this section in the full configuration reference

LogLevel debug|info|notice|warning|err

Sets the log-level. If, for example, set to notice, then all events with severity notice, warning, or err will be submitted to the syslog-daemon.

Please note that debug is only available if collectd has been compiled with debugging support.

NotifyLevel OKAY|WARNING|FAILURE
Controls which notifications should be sent to syslog. The default behaviour is not to send any. Less severe notifications always imply logging more severe notifications: Setting this to OKAY means all notifications will be sent to syslog, setting this to WARNING will send WARNING and FAILURE notifications but will dismiss OKAY notifications. Setting this option to FAILURE will only send failures to syslog.