# Watcher on elasticsearch logs

**URL:** <https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 31, 2018, 7:06pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915 "2018-10-31T19:06:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv94](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Post date:** [October 31, 2018, 7:06pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915/1 "2018-10-31T19:06:18Z")

</div>

Can we create a watcher if the elasticsearch logs have [DEBUG], [ERROR], couldn't create an index, failed to create an index or execute and in kibana if we cant see any logs. If the /var/log/elasticsearch contains these type of errors then I want an alert. Last week, all of sudden kibana did not receive any indices from elasticsearch because elastic search failed to create and did not observe. Checked after 2 hours there are no logs for particular period of time. I resolved the issue but if it happens again how do I get an alert .Is there any other approach? To get an alert we search the indices if the indices are not created then?

for example,

[2018-10-31T14:07:37,343][DEBUG][o.e.a.b.TransportShardBulkAction] [metricbeat-2018.10.31][3] failed to execute ..........

---

<div class="post-metadata">

**Author:** ![shiv94](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Post date:** [November 1, 2018, 4:07pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915/2 "2018-11-01T16:07:29Z")

</div>

Please, can someone respond?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 1, 2018, 7:39pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915/3 "2018-11-01T19:39:13Z")

</div>

You could use [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-elasticsearch.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-elasticsearch.html) and then write some watches for it.

---

<div class="post-metadata">

**Author:** ![shiv94](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Post date:** [November 2, 2018, 6:07pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915/4 "2018-11-02T18:07:20Z")

</div>

Thanks, this helped me.

---

<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:** [November 30, 2018, 6:07pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915/5 "2018-11-30T18:07:23Z")

</div>

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