log_logstash plugin¶
| Plugin name | log_logstash |
| Type | read |
| Callbacks | config, log, notification |
| Status | supported |
| Since | 5.5 |
| Copyright | 2013 Pierre-Yves Ritschard |
| License | GPLv2 |
| Configuration | collectd.conf(5) |
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!
Dependencies¶
Caveats¶
Configuration¶
Configuration options · from collectd.conf(5)
See this section in the full configuration reference
The log logstash plugin behaves like the logfile plugin but formats messages as JSON events for logstash to parse and input.
- 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.