Plugin Log Logstash
Clone this wiki locally
Name: | DF plugin |
---|---|
Type: | read |
Callbacks: | config, log, notification |
Status: | supported |
FirstVersion: | 5.5 |
Copyright: | 2013 Pierre-Yves Ritschard |
License: | GPLv2 |
Manpage: | collectd.conf(5) |
See also: | List of Plugins |
This log logstash plugin writes collectd logs and events as Logstash JSON formatted events.
Synopsis
<Plugin log_logstash>
LogLevel @DEFAULT_LOG_LEVEL@
File "@localstatedir@/log/@PACKAGE_NAME@.json.log"
</Plugin>
Parameters
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 written to the logfile.
Please note that debug is only available if collectd has been compiled with debugging support.
File File
Sets the file to write log messages to. The special strings stdout and stderr can be used to write to the standard output and standard error channels, respectively. This, of course, only makes much sense when collectd is running in foreground- or non-daemon-mode.
Note: There is no need to notify the daemon after moving or removing the log file (e. g. when rotating the logs). The plugin reopens the file for each line it writes.
Example graph
None yet. Add one now!