Hi,
I use the below grok to convert the source.address to source.ip and convert from string to IP as part of the ECS.
I have firewall and IPS logs running through this. Prior to the grok i convert source.address to string so that all sources are the same. source.ip does not exist before this. The firewall and ips logs are indexed using the same index pattern.
The issue is that the firewall is correctly indexing as IP but the IPS logs are coming in as text and creating a conflict
.
Any idea as to why this might be happening? source.address is indexed as string.
if "source.address" {
grok {
match => [ "source.address", "(?:%{IP:source.ip}|%{GREEDYDATA:source.domain})" ]
add_tag => [ "srcip" ]
}
}
Thanks
Phil