'How to print matches in Elasticsearch and Kibana or Elasticsearch-py?

I have 2 example patterns, with the same column names.

pattern1* (index-1,index-2,index-3) col1 col2 col3 col4

pattern2* (index-5, index-6, index-7, index-8) col1 col2 col5

I want to automatically compare pattern1* and pattern2*, with col1 and col2 and find full matches and save it somewhere. Is it even possible with ES and Kibana or with elasticsearch-py? I am new to ES.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source