# Watcher action index

**URL:** https://discuss.elastic.co/t/watcher-action-index/280078
**Category:** Elasticsearch
**Created:** [July 30, 2021, 11:45am UTC](https://discuss.elastic.co/t/watcher-action-index/280078 "2021-07-30T11:45:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bilel\_meddeb](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bilel\_meddeb](https://discuss.elastic.co/u/bilel_meddeb)
#### Post date: [July 30, 2021, 11:45am UTC](https://discuss.elastic.co/t/watcher-action-index/280078/1 "2021-07-30T11:45:22Z")

</div>

hello  
i create a watcher with this action  
 ![1](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8f350ccdc38d358ff00ba72f57bccf81bf7e79c4.jpeg)

i want to store the result in index

---

<div class="post-metadata">

### Author: ![abrx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrx/32/43881_2.png) [@abrx](https://discuss.elastic.co/u/abrx)
#### Post date: [July 30, 2021, 12:58pm UTC](https://discuss.elastic.co/t/watcher-action-index/280078/2 "2021-07-30T12:58:38Z")

</div>

You can either [use a curl](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html#add-single-document) to post your data, or logs watcher result in a file and configure a filebeat to watch it.

---

<div class="post-metadata">

### Author: ![bilel\_meddeb](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bilel\_meddeb](https://discuss.elastic.co/u/bilel_meddeb)
#### Post date: [August 2, 2021, 9:27am UTC](https://discuss.elastic.co/t/watcher-action-index/280078/3 "2021-08-02T09:27:25Z")

</div>

can you give me an example please, i'm new in elasticsearch.

---

<div class="post-metadata">

### Author: ![abrx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrx/32/43881_2.png) [@abrx](https://discuss.elastic.co/u/abrx)
#### Post date: [August 9, 2021, 7:54am UTC](https://discuss.elastic.co/t/watcher-action-index/280078/4 "2021-08-09T07:54:34Z")

</div>

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](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 6, 2021, 7:54am UTC](https://discuss.elastic.co/t/watcher-action-index/280078/5 "2021-09-06T07:54:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
