Use DSL query to find out whether a file has a fixed value?

Hi all,
I have to check for a field in elasticsearch that whether it contains particular value or not.
Suppose there are multiple files with entries:-
1:-message - request for connection
2:- message- response for connection
now i want a separate out the file which have 1st message but does not have the 2nd message.
I have ingested all the file content to elasticsearch , now i want write a DSL query which can help me achieving it.
Thanks in advance

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