hello
i create a watcher with this action

i want to store the result in index
hello
i create a watcher with this action

i want to store the result in index
You can either use a curl to post your data, or logs watcher result in a file and configure a filebeat to watch it.
can you give me an example please, i'm new in elasticsearch.
If you wanna script you can just do a POST request with the endpoint provided in the link above.
If you to try want the agent method, here's the start
© 2020. All Rights Reserved - Elasticsearch
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.