I am very new to messing with Elastic pipelines and I need help. I want to alert based on whether two fields in a log match. I am not sure the correct way to do this.
The logs are from a Cisco DUO integration. I want alerts if the auth device and the access device countries are different from one another.
Based on some posts, I tried to create a new field in the pipline and use a SET to true based on a condition if cisco_duo.auth.access_device.location.country == cisco_duo.auth.auth_device.location.country. I was not able to get this to work so I am not sure if it is just my syntax or if I am on the wrong track altogether.
If I can get that to work, I could create an alert based on whether my new field is true or false.
I am open to taking a completely different route as well!
That is great! Much simpler than what I have been trying.
I am trying to add this to an existing ingest pipeline and it is not working. It is setting TRUE even when they do NOT match. My guess I have some syntax wrong?
I am using SecurityOnion so I do not think the watcher would fit my use? It uses sigma to create an elastic eql query which does not support field comparisons.
No more suggestion, because I know nothing of SecurityOnion / sigma. If your org mandates to use tools X and Y, very common, then you are stuck to find slightly hacky workarounds to solve relatively simple problems. Been there, got several scars from the experience, know it can be quite annoying. On flip side, if the org allows 1001 different tools, every group chooses its favorite, and you end up with stuff that is un-manageable and overly-complex.
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.