I have a query showing failed and successful logins on one line , I would like to further refine this to only show when there is a successful login and a failed login on the same row.
the query I have is as follows
criteria = log.id: is one of 0101039426, 0101039424
the output contains attacker IP, (count of failed logins) , (count of successful logins)
e.g
111.222.333.444 1 -
222.333.444.111 - 2
333.444.111.222 1 3 <<< this is only the one I want to see
It would be helpful to share some sample documents as indexed into elasticsearch. Obfuscate if you must.
If logid is a field name within individual documents, and an individual document contains only one or the other of the 2 (and other) values, then you need an aggregation, not just a search, if I’m understanding your data. But I’m guessing really, I don’t know how your data is structured into documents until you tell me.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.