services.logstash.filterConfig
NixOS option
logstash filter configuration.
type: strings concatenated with "\n"Default
""
Example
declared in: nixos/modules/services/logging/logstash.nixView source on NixOS/nixpkgs →''
if [type] == "syslog" {
# Keep only relevant systemd fields
# https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
prune {
whitelist_names => [
"type", "@timestamp", "@version",
"MESSAGE", "PRIORITY", "SYSLOG_FACILITY"
]
}
}
''