After upgrading Elasticsearch from 2.x to 7.x python script stopped working.
Looks like fquery is no longer available after 6.x
Could someone kindly tell me on how to convert fquery with a new syntax please?
Thank you
gen_query = ({ "range":
{"@timestamp":
{
"gte": timestamp_from,
"lte": timestamp_to
}
}
},
{"fquery":
{"query":
{"query_string":
{"query": host_query
}
},
}
},
{"query":
{"query_string":
{"query": message_query
}
},
})