I'm using the JDBC filter to pull info from a SQL database. If the field is blank, it generates the below:
"example": [
{
"contoso": ""
}
]
I've tried the below to remove the empty field, but it doesn't seem to work. What am I doing wrong here?
if [example][0][contoso] == "" {
mutate {
remove_field => [ "example" ]
}
}