Conditional objects

Is there is any conditional objects ?

suppose if I need to ignore one location in some charts, is there any IF condition available ????

Please help me out

Thank you!

There aren't conditionals in Kibana, but depending on your case you could probably solve some of it using scripted fields (which support conditionals).
For example: you want to set a location to "Countryside" if distance_to_center is larger than 50.
a doc would be something like this:
{
name: Woolchester,
distance_to_center: 67
location: Washington
}
A scripted field like this with a field called conditional_location:

if doc["distance_to_center"].value > 50 return "Countryside"
else return doc["location"].value

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.