How can define Watcher watches script to detect a keyword from JSON files? and How to include more information from JSON file(From Azure EventHUB)? Currently using below Advanced JSON watch but seems like not working.
I was able to attach JSON file with the each trap but it's including full list of traps/log received by elastic. Is there a filter only to include only log of current time?
first, it would be great, if you could properly format code/watcher snippets. As this forum supports github markdown, it should be pretty easy and makes reading watches inifnitely simpler.
Second, you could use the extract directive from the search input to reduce the size of your payload. Alternatively you could use a transform in your action.
I have specified range inside input but data field inside action still doesn't attach matched events Raw Data. Need to attach JSON(RAW) file with every event trapped.
if you use a transform, you might want to use a script transform and decide manually which data to keep and which to remove. A search transform just uses the search result as new input, so I dont think you will gain anything from that.
I have not looked any closer at the snippets, because they are nearly impossible to read without formatting...
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.