# Why include\_lines is not working?

**URL:** <https://discuss.elastic.co/t/why-include-lines-is-not-working/250606>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 1, 2020, 6:58am UTC](https://discuss.elastic.co/t/why-include-lines-is-not-working/250606 "2020-10-01T06:58:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaraws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaraws/32/76397_2.png) [@jaraws](https://discuss.elastic.co/u/jaraws)\
**Post date:** [October 1, 2020, 6:58am UTC](https://discuss.elastic.co/t/why-include-lines-is-not-working/250606/1 "2020-10-01T06:58:11Z")

</div>

I have the following file yaml configuration to pick certain lines with string expressions, but filebeat doesnt seems to be prpagating messages to elastic search:

```auto
filebeat.inputs:
 - type: log
   enabled: true
   paths:
     - /usr/share/apps/logs/*.log
   include_lines: ['ABC:']
   exclude_files: ['.gz$']
   fields:
      tags: ["Tag-1"]
      type: "Type-1"
   fields_under_root: true
 - type: log
   enabled: true
   paths:
     - /usr/share/apps/logs/*.log
   include_lines: ['DEF:']
   exclude_files: ['.gz$']
   fields:
      tags: ["Tag-2"]
      type: "Type-2"
   fields_under_root: true

```

The log line is very simple:  
[2020-09-20] INFO - ABC: This is log message.

I am using version 7.2 of filebeat.

Could anyone suggest me here what could be going wrong in here?

---

<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:** [October 29, 2020, 8:58am UTC](https://discuss.elastic.co/t/why-include-lines-is-not-working/250606/2 "2020-10-29T08:58:13Z")

</div>

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