# Can filebeat alert if the log file is not updated or no fresh logs?

**URL:** https://discuss.elastic.co/t/can-filebeat-alert-if-the-log-file-is-not-updated-or-no-fresh-logs/117928
**Category:** Beats
**Tags:** filebeat
**Created:** [February 1, 2018, 3:29am UTC](https://discuss.elastic.co/t/can-filebeat-alert-if-the-log-file-is-not-updated-or-no-fresh-logs/117928 "2018-02-01T03:29:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vedi](https://avatars.discourse-cdn.com/v4/letter/v/e274bd/32.png) [@Vedi](https://discuss.elastic.co/u/Vedi)
#### Post date: [February 1, 2018, 3:29am UTC](https://discuss.elastic.co/t/can-filebeat-alert-if-the-log-file-is-not-updated-or-no-fresh-logs/117928/1 "2018-02-01T03:29:24Z")

</div>

If there are no fresh logs, does filebeat alert logstash or send some warnings?

if not, Is there a way to alert logstash when the logs are not loading in my server because the application is hung or failed.?

Any help would be much appreciated.

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [February 1, 2018, 1:03pm UTC](https://discuss.elastic.co/t/can-filebeat-alert-if-the-log-file-is-not-updated-or-no-fresh-logs/117928/2 "2018-02-01T13:03:39Z")

</div>

No filebeat doesn't sent a message if no logs are found. You can setup an alert on the query side (e.g. a [watch](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/watcher-api.html)) to detect if no longs are found for a longer period of time.

---

<div class="post-metadata">

### Author: ![Vedi](https://avatars.discourse-cdn.com/v4/letter/v/e274bd/32.png) [@Vedi](https://discuss.elastic.co/u/Vedi)
#### Post date: [February 1, 2018, 3:18pm UTC](https://discuss.elastic.co/t/can-filebeat-alert-if-the-log-file-is-not-updated-or-no-fresh-logs/117928/3 "2018-02-01T15:18:11Z")

</div>

Thank you

---

<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: [March 1, 2018, 3:18pm UTC](https://discuss.elastic.co/t/can-filebeat-alert-if-the-log-file-is-not-updated-or-no-fresh-logs/117928/4 "2018-03-01T15:18:13Z")

</div>

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