For other versions, see theVersioned plugin docs.
For questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github.For the list of Elastic supported plugins, please consult the Elastic Support Matrix.
Read events from the collectd binary protocol over the network via udp.See https://collectd.org/wiki/index.php/Binary_protocol
Configuration in your Logstash configuration file can be as simple as:
input { udp { port => 25826 buffer_size => 1452 codec => collectd { } }}
A sample collectd.conf
to send to Logstash might be:
Hostname "host.example.com"LoadPlugin interfaceLoadPlugin loadLoadPlugin memoryLoadPlugin network<Plugin interface> Interface "eth0" IgnoreSelected false</Plugin><Plugin network> <Server "10.0.0.1" "25826"> </Server></Plugin>
Be sure to replace 10.0.0.1
with the IP of your Logstash instance.
Setting | Input type | Required |
---|---|---|
No |
||
string, one of |
No |
|
No |
||
No |
||
No |
||
string, one of |
No |
|
No |
Path to the authentication file. This file should have the same format asthe AuthFilein collectd. You only need to set this option if the security_level
is set toSign
or Encrypt
change_value
, warn
, drop
"change_value"
What to do when a value in the event is NaN
(Not a Number)
NaN
to the value of the nan_value option and add nan_tag
as a tagNaN
to the value of the nan_value option, print a warning to the log and add nan_tag
as a tagNaN
(this only drops the single event, not the whole packet)"_collectdNaN"
The tag to add to the event if a ‘NaN` value was foundSet this to an empty string (’') if you don’t want to tag
0
Only relevant when nan_handeling
is set to change_value
Change NaN to this configured value
true
Prune interval records. Defaults to true
.
None
, Sign
, Encrypt
"None"
Security Level. Default is None
. This setting mirrors the setting from thecollectd Network plugin
File path(s) to collectd types.db
to use.The last matching pattern wins if you have identical pattern names in multiple files.If no types.db is provided the included types.db
will be used (currently 5.4.0).