Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 796 Bytes

reverse_dns.md

File metadata and controls

27 lines (20 loc) · 796 Bytes

Reverse DNS filter

Status : core plugin, unit tested and maintained.

The reverse dns filter replace an ip in a field by the hostname, performing a dns resolution. This is useful with syslog.

Example 1: performs a dns resolution on the field host.

Config using url: filter://reverse_dns://host

Config using logstash format:

filter {
  reverse_dns {
    field => dns
    cache_size => 1000
  }
}

Parameters:

  • field: which field to work on.
  • target_field: field to store the result. Default: field used for resolution.
  • only_hostname: after dns resolution, the filter will keep only the first word of dns name. Example : 'www.free.fr' will be transformed to 'www'. Default value: true.
  • cache_*: cache configuration. More doc at cache.