My log looks something like this.
"request": {
"hostip": "10.7.37.74",
"enduserip": "",
}
Obviously "enduserip": "" is not a valid IP address. I would like to delete the field in this case.
This syntax isn't being considered valid by logstash.
mutate{
remove_field => ["request"]["enduserip"]
}
Any suggestions?