Hie ,
Im trying to check a condition for nested json fields and if the condition is met I want to drop the entire data , but it is not working
Source:
"Data" => [
[0] {
"Scales" => [
[0] {
"TaskInfos" => [
[0] {
"Text1" => "",
"Text2" => ""
}
],
"HasErrorState" => true
}
]
}
]
Logstash script:
filter{
if [type] == "digital"
{
if [Data][Scales][HasErrorState] == "true"
{
mutate {
remove_field => ["Data"]
}
}
}
}
Can you please help me with the solution
TIA
Anusha