background:
winlogbeat7.3.2
windows2016
winlogbeat.yml:
processors:
- add_host_metadata:
netinfo.enabled: true
requirement:
in kibana:
I want to remove this ipv6 info ,How? THANKS!
I try to remove ipv6 info with script
- script:
lang: javascript
id: my_filter
source: >
function process(event) {
var message = event.Get("host.ip")
event.Put("len",message.length)
for (var i=0; i<message.length; i++)
{
if (message[i].indexOf("192.") > -1)
{
event.Put("host.ip",message[i])
break;
}
}
}
but recevie: