MyNixOS website logo
option

services.logstash.filterConfig

logstash filter configuration.

Declarations
Type
strings concatenated with "\n"
Default
""
Example
''
  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"
      ]
    }
  }
''