# Can filebeat pick up log entries based on keywords?

**URL:** <https://discuss.elastic.co/t/can-filebeat-pick-up-log-entries-based-on-keywords/191565>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 22, 2019, 4:13am UTC](https://discuss.elastic.co/t/can-filebeat-pick-up-log-entries-based-on-keywords/191565 "2019-07-22T04:13:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yungnvn](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yungnvn](https://discuss.elastic.co/u/yungnvn)\
**Post date:** [July 22, 2019, 4:13am UTC](https://discuss.elastic.co/t/can-filebeat-pick-up-log-entries-based-on-keywords/191565/1 "2019-07-22T04:13:31Z")

</div>

Is it possible for filebeat to pick up only certain log entries?

For ex, if my log entry contains the following:

[2019-07-21:00:00:00] [INFO] [log message]

[2019-07-21:00:00:01] [ERROR] [log message]

Can I tell filebeat to pick up only the "ERROR" event?

Any help is appreciated!

Thanks

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [July 22, 2019, 4:50am UTC](https://discuss.elastic.co/t/can-filebeat-pick-up-log-entries-based-on-keywords/191565/2 "2019-07-22T04:50:29Z")

</div>

Don't know how performand it is but there is a n `include_lines` option in the configuration of the log input

see  
[https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-include-lines](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-include-lines)

---

<div class="post-metadata">

**Author:** ![yungnvn](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yungnvn](https://discuss.elastic.co/u/yungnvn)\
**Post date:** [July 26, 2019, 6:46pm UTC](https://discuss.elastic.co/t/can-filebeat-pick-up-log-entries-based-on-keywords/191565/3 "2019-07-26T18:46:24Z")

</div>

Thanks! I'll try this out.

---

<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:** [August 23, 2019, 6:46pm UTC](https://discuss.elastic.co/t/can-filebeat-pick-up-log-entries-based-on-keywords/191565/4 "2019-08-23T18:46:28Z")

</div>

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