If you are desperate then maybe, but I'd consider all these hacks with Watcher pretty much a dead end that should be rewritten another way sooner than later
Full transparency I haven't tested this. Just curious. Have you tried to create a rule using your ESQL along with triggering a index event? Within the index event, use context_hits
xeraa
I actually ended up doing something a bit different
I created a regular Transform that calculates today's inventory
I ran a simple Watcher that copies those entries to a new Data stream. See this Q\A for reference. It adds the inventory date as an extra field to each document, hence creating an inventory history index.
I then used ES|QL to query the inventory index.
So at this point, supporting ESQL to create that inventory data stream would be a cool addition, but no desperate measures needed to be taken!
Sunile_Manjee
I'm trying this out and the main thing that prevents me from achieving what I want, is that the document indexed in the action needs to be a new document it seems. But I would like to index the same documents the ESQL query returned.
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.