Hi,
I have written a plugin to resolve host names using DNS lookup.
It was working fine and recently, dns is been blocked in lab. And, we have updated /etc/hosts for resolving it locally. Still, _grokparse failure is happening for DNS. Is this expected behavior? Can you please help?
Filter
if [type] == "syslog" {
mutate {
add_field => { "clustername" => "%{host}" }
}
dns {
action => "replace"
reverse => [ "clustername" ]
add_tag => [ "dns_lookup" ]
}
}
Log
[2017-06-06T05:19:38,369][DEBUG][logstash.pipeline ] output received {"event"=>{"@timestamp"=>2017-06-06T05:19:38.361Z, "port"=>54923, "clustername"=>"unclecluster", "@version"=>"1", "host"=>"10.58.205.45", "message"=>"Jun 6 11:13:58.413639 info CLA-1 dhcpd: DHCPACK on 169.254.1.62 to 00:a0:a5:83:22:37 via bond0", "type"=>"syslog", "tags"=>["dns_lookup", "_grokparsefailure"]}}
Here clustername is actually resolved but still grokparsefailure comes.