# with an input plugin:
# you can also use this codec with an output.
input {
file {
codec => collectd {
authfile => ... # string (optional)
nan_handling => ... # string, one of ["change_value", "warn", "drop"] (optional), default: "change_value"
nan_tag => ... # string (optional), default: "_collectdNaN"
nan_value => ... # number (optional), default: 0
prune_intervals => ... # boolean (optional), default: true
security_level => ... # string, one of ["None", "Sign", "Encrypt"] (optional), default: "None"
typesdb => ... # array (optional)
}
}
}
Path to the authentication file. This file should have the same format as the AuthFile in collectd. You only need to set this option if the security_level is set to “Sign” or “Encrypt”
What to do when a value in the event is NaN (Not a Number) - change_value (default): Change the NaN to the value of the nan_value option and add nan_tag as a tag - warn: Change the NaN to the value of the nan_value option, print a warning to the log and add nan_tag as a tag - drop: Drop the event containing the NaN (this only drops the single event, not the whole packet)
The tag to add to the event if a NaN value was found Set this to an empty string (‘’) if you don’t want to tag
Only relevant when nan_handeling is set to ‘change_value’ Change NaN to this configured value
Prune interval records. Defaults to true.
Security Level. Default is “None”. This setting mirrors the setting from the collectd 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).