Hey there,
I'm having a hard time wrapping my head around Elasticsearch search syntax in Kibana.
I have created this filter that works:
{
"query": {
"bool": {
"should": [
{
"match": {
"flow.src_addr": "10.0.0.0/24"
}
},
{
"match": {
"flow.dst_addr": "10.0.0.0/24"
}
},
{
"match": {
"flow.src_addr": "10.0.1.0/24"
}
},
{
"match": {
"flow.dst_addr": "10.0.1.0/24"
}
}
]
}
}
}
What I'm trying to do is simplify that syntax to the Elasticsearch equivalent of something along the lines of:
((flow.dst_addr OR flow.src_addr) AND (10.0.1.0/24 OR 10.0.3.0/24 OR 10.0.3.0/24 OR 10.13.18.0/24 OR ... etc))
Is that possible?