# Filebeat shows merged single error lines despite Multiline

**URL:** https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701
**Category:** Beats
**Tags:** filebeat
**Created:** [July 16, 2019, 9:51am UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701 "2019-07-16T09:51:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![elk51211](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@elk51211](https://discuss.elastic.co/u/elk51211)
#### Post date: [July 16, 2019, 9:51am UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701/1 "2019-07-16T09:51:29Z")

</div>

Hello,  
I managed to merge my stacktrace in a mulitline. Unfortunately my kibana still shows me the logs for single error threads. How do I avoid these single logs and get solely multilines?

Multiline settings:  
multiline:  
pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}(T|\s)[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]{3})?Z?'  
negate: true  
match: after

Stacktrace:  
`2019-07-16 09:41:30.915 WARN 1 --- [nfoReplicator-0] c.n.discovery.InstanceInfoReplicator : There was a problem with the instance info replicator`

```
` com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server`
` at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) ~[eureka-client-1.9.8.jar!/:1.9.8]`
    at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56) ~[eureka-client-1.9.8.jar!/:1.9.8]
    at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$1.execute(EurekaHttpClientDecorator.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8]
    at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) ~[eureka-client-1.9.8.jar!/:1.9.8]
```

---

<div class="post-metadata">

### Author: ![Michal\_Pristas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_pristas/32/46639_2.png) [@Michal\_Pristas](https://discuss.elastic.co/u/Michal_Pristas)
#### Post date: [July 16, 2019, 1:55pm UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701/2 "2019-07-16T13:55:32Z")

</div>

hey @elk51211 you said that you managed to merge. configuration looks good but have you verified filebeat picked it up correctly?  
also is it possible that Kibana shows logs before this change was made?  
is the configuration snippet part of the specific input?

---

<div class="post-metadata">

### Author: ![elk51211](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@elk51211](https://discuss.elastic.co/u/elk51211)
#### Post date: [July 16, 2019, 2:29pm UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701/3 "2019-07-16T14:29:29Z")

</div>

I'm not quite sure what you mean. This is how my filebeat.yml looks like.

```
 filebeat.inputs:
      - type: container
        multiline:
          pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2}(T|\s)[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{3})?Z?)'
          negate: true
          match: after
        paths:
          - '/var/lib/docker/containers/*/*.log'
        processors:
          - add_docker_metadata: ~

    filebeat.config:
      modules:
        path: ${path.config}/modules.d/*.yml
        reload.enabled: false
    filebeat.autodiscover:
      providers:
        - type: docker
          hints.enabled: true
          containers.ids:
            - "${data.docker.container.id}"
    setup.kibana:
      host: "kibana:5601"
    output.logstash:
      hosts: logstash:5044

```

And it seems to work because in Kibana I got the stack trace shown as 1 log. Unfortunately the single error logs of the stack trace are shown aswell.

 ![2019-07-16%2016_26_24-](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0e964c5502dd1ec1ec6949d1684f4f6d43afd02b.png)

I got the merged stack trace on top and underneath the single ones.  
Nah Kibana shouldnt show older logs, I delete thelogs for every attempt

---

<div class="post-metadata">

### Author: ![elk51211](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@elk51211](https://discuss.elastic.co/u/elk51211)
#### Post date: [July 29, 2019, 1:00pm UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701/4 "2019-07-29T13:00:43Z")

</div>

Hey Michal do you have an idea how to make that work?

---

<div class="post-metadata">

### Author: ![Michal\_Pristas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_pristas/32/46639_2.png) [@Michal\_Pristas](https://discuss.elastic.co/u/Michal_Pristas)
#### Post date: [August 6, 2019, 12:00pm UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701/5 "2019-08-06T12:00:10Z")

</div>

Hey @elk51211  
try running `filebeat test config -c filebeat.yml` to see if your config is valid. indentations seems off.

also having combined output seems like something which should not happen. can you check debug logs?  
you can do that either by running filebeat with `-d` or by setting `logging.level` to `debug`

---

<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: [September 3, 2019, 12:00pm UTC](https://discuss.elastic.co/t/filebeat-shows-merged-single-error-lines-despite-multiline/190701/6 "2019-09-03T12:00:10Z")

</div>

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