# Snapshot failure logs to beats--\>logstash

**URL:** https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373
**Category:** Elasticsearch
**Created:** [April 24, 2018, 8:20pm UTC](https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373 "2018-04-24T20:20:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mww1](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mww1](https://discuss.elastic.co/u/mww1)
#### Post date: [April 24, 2018, 8:20pm UTC](https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373/1 "2018-04-24T20:20:40Z")

</div>

Hi guys,  
I want to make a model where I can get the alert/logs of the snapshots attempt to take backups fail.  
I want it to send the logs to beats.  
is there any watch job I could make?  
please guide me.

Thanks. 🙂

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [April 24, 2018, 8:43pm UTC](https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373/2 "2018-04-24T20:43:01Z")

</div>

If you snapshot with Elasticsearch Curator, you can log in JSON format, which is ready for consumption by filebeat/Logstash, complete with ISO8601 timestamp. You'd be able to tell whether your snapshot completed from the logs.

---

<div class="post-metadata">

### Author: ![mww1](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mww1](https://discuss.elastic.co/u/mww1)
#### Post date: [April 24, 2018, 8:47pm UTC](https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373/3 "2018-04-24T20:47:15Z")

</div>

thanks for the reply.  
yes we are using curator to take the snapshot.  
can you please elaborate more on the approach of getting the logs and parsing it to determine whether it failed or not and then sending it to beats to consume it? is there a watch job for the same?

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [April 27, 2018, 12:29pm UTC](https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373/4 "2018-04-27T12:29:53Z")

</div>

No, there's no watch job. The Curator documentation [shows how to log in json format](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.5/configfile.html#logformat). The rest would be the subject of a different thread in the beats or logstash forums.

---

<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: [May 25, 2018, 12:29pm UTC](https://discuss.elastic.co/t/snapshot-failure-logs-to-beats-logstash/129373/5 "2018-05-25T12:29:55Z")

</div>

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