Hi all,
I'm trying to match the IP address to hostname.
Data is json file and it is originally pcap file.
I used dns filter in logstash.conf file.
mutate {
add_field => { "src_hostname" => "%{[layers][ip][ip_ip_src]}" }
add_field => { "dst_hostname" => "%{[layers][ip][ip_ip_dst]}" }
}
dns {
reverse => [ "src_hostname","dst_hostname" ]
action => "replace"
add_tag => [ "dns_lookup" ]
}
As a result, fields(src_hostname, dst_hostname) are created but the values are just ip address.
How can I match the IP address to host name?
Thanks.