I am trying to delete or pipe (Delete), an event that already has the same indexed value for a given field.
The scenario is as follows:
I have a fleet server and an agent to fetch logs from AD Server, Windows fires a lot of events just for a user login, that's noise to me and I was wondering if I would create a pipeline or a renderer (drop_event) in the policy of system processors.
the point is that each triggered event has a unique LogonGUID, I want to discard the event that is already stored in Elasticsearch with the same LogonGUID value.
Just to get one document per login.
I was wondering if anyone can help by doing something like
drop_event
if stored document.LogonGUID === next document.LogonGUID
EITHER
Set up some pipeline to process that before indexing.
An simple solution is using the LogonGUID as the _id of the document of Elasticsearch.
Elasticsearch automatically overwrite the same docoment with the same LogonGUID.
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.