Watcher action index

hello
i create a watcher with this action
1

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