I recently started working on watcher. I have certain condition which i want to check in one watcher step wise step and then it will push those condition result in output action.
how to check sum of unique events regarding another field of same index.
How to list all unique events regarding another field of same index.
Can anyone suggest how can i test such activity on watchers.
the requirements are a bit blurry, so I'll try to talk about your possible options
First, you could try to write proper search queries that count for unique fields using the cardinality aggregation. This way everything gets done on the search side and you dont need to do any postprocessing
Second, you could implement this functionality in your own condition or transformation by using a set, but this is rather memory intensive and thus should only be done for smaller datasets.
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.