# Filbeat exlude or include only

**URL:** <https://discuss.elastic.co/t/filbeat-exlude-or-include-only/220878>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 25, 2020, 3:12pm UTC](https://discuss.elastic.co/t/filbeat-exlude-or-include-only/220878 "2020-02-25T15:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![armani\_ani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armani_ani/32/55455_2.png) [@armani\_ani](https://discuss.elastic.co/u/armani_ani)\
**Post date:** [February 25, 2020, 3:12pm UTC](https://discuss.elastic.co/t/filbeat-exlude-or-include-only/220878/1 "2020-02-25T15:12:26Z")

</div>

Hi All,

i have try to use filebat to ship syslog from Linux server, i use log type .

I want just to ship error content on /var/log/syslog and exlucde for exaample all line that content info .

My config client on filebeat

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - /var/log/syslog  
processors:
  - add\_locale:  
format: abbreviation

exclude\_lines: ['_INFO_']  
include\_lines: ['_error_']

But the filrebat still shippping all content /var/log/syslog

Thanks in advance for you help .

ani

---

<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 24, 2020, 3:12pm UTC](https://discuss.elastic.co/t/filbeat-exlude-or-include-only/220878/2 "2020-03-24T15:12:32Z")

</div>

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