Our data in ES looks like:
{ "event": "w", "environment": "abc"}
{ "event": "w", "environment": "def"}
{ "event": "z", "environment": "abc"}
ES version is 6.5.1
I want to find all the events which happened in more than 1 environment. In the example it should be event "w" only because it's happened in both "abc" and "def" environments.
Can I query it from ES in that way?