# Only Error and Warning message capture in docker input

**URL:** <https://discuss.elastic.co/t/only-error-and-warning-message-capture-in-docker-input/217590>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 3, 2020, 9:48am UTC](https://discuss.elastic.co/t/only-error-and-warning-message-capture-in-docker-input/217590 "2020-02-03T09:48:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rguptarg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rguptarg/32/60643_2.png) [@rguptarg](https://discuss.elastic.co/u/rguptarg)\
**Post date:** [February 3, 2020, 9:48am UTC](https://discuss.elastic.co/t/only-error-and-warning-message-capture-in-docker-input/217590/1 "2020-02-03T09:48:10Z")

</div>

Hi All,

I am using filebeat (filebeat-7.3.2-1.x86\_64) for Doctor log analysis, now I want to capture only Error and Warning message. I have tried "include\_lines: ['^ERR', '^WARN']" option but it's not working. can you suggest correct way to do this.

filebeat.autodiscover:  
providers:  
- type: docker  
templates:  
- condition:  
and:  
- equals:  
docker.container.image: ucc  
- equals:  
docker.container.image: waggerap  
- config:  
- type: log  
paths:  
- /VMWNODE/docker/containers/{data.docker.container.id}/\*.log fields: environment: UAT IP: 10.222.166.78 fields\_under\_root: true multiline.pattern: '^[[:space:]]+|]'  
multiline.match: after

This is my proper working configuration, Please suggest

---

<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 2, 2020, 9:48am UTC](https://discuss.elastic.co/t/only-error-and-warning-message-capture-in-docker-input/217590/2 "2020-03-02T09:48:10Z")

</div>

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