I have brought a json document from the index "sequence". I want to access one of the fields "value1" in that doc and compare.
I am getting errors.
My config file is -->
<
input {
elasticsearch {
hosts => "localhost:9200"
index => "sequence"
tags => "booleans"
}
}
filter {
mutate {
if "value1" == "true" {
# some operation .......
}
}
}
output {
if "bools" in [tags] {
stdout { codec => rubydebug }
}
}
/>
Can anyone tell me how can I do the comparison??
Thank you in advance !!