Skip to content

Plugin Log Logstash

Florian Forster edited this page Nov 21, 2023 · 1 revision
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.


 <Plugin log_logstash>
   File "@localstatedir@/log/@PACKAGE_NAME@.json.log"


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!