# Multiline codec in filebeats

**URL:** <https://discuss.elastic.co/t/multiline-codec-in-filebeats/95418>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 1, 2017, 9:07pm UTC](https://discuss.elastic.co/t/multiline-codec-in-filebeats/95418 "2017-08-01T21:07:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [August 1, 2017, 9:07pm UTC](https://discuss.elastic.co/t/multiline-codec-in-filebeats/95418/1 "2017-08-01T21:07:39Z")

</div>

Hi there!

I'm trying to use multiline codec in filebeat.yml for stack trace exceptions

Here is my  
filebeat.conf

* * *

```
- input_type: log
  multiline.pattern: '^[[:space:]]'
  multiline.negate: false
  multiline.match: after

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /home/dotisandhyarani/Downloads/logstash-5.4.1/bin/*.log
    #- c:\programdata\elasticsearch\logs\*

```

My exception log file is

* * *

```auto
2016-12-16 21:28:05,668 ERROR [int-http-28] [nbiws::::] c.t.d.s.impl.DiagnosticServiceImpl - Error running a diagnostic workflow : 9003: Invalid arguments
        at com.twowire.dmc.listener.DeviceInteractionException: 9003: Invalid arguments
 at com.twowire.dmc.listener.DeviceInteractionTemplate.execute(DeviceInteractionTemplate.java:102) ~[cms-core-4.2.8.9.jar:4.2.8.9]
      at com.twowire.dmc.listener.DeviceInteractionTemplate.execute(DeviceInteractionTemplate.java:59) ~[cms-core-4.2.8.9.jar:4.2.8.9]
      at com.twowire.dmc.listener.DeviceInteractionTemplate.execute(DeviceInteractionTemplate.java:48) ~[cms-core-4.2.8.9.jar:4.2.8.9]

```

Basically, in exception log file  
each exception line starts with timestamp and the remaining lines with "at"

when I run its giving me grokparse failure error.

could anyone help with this?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 1, 2017, 9:47pm UTC](https://discuss.elastic.co/t/multiline-codec-in-filebeats/95418/2 "2017-08-01T21:47:23Z")

</div>

> [@SandhyaRani](#):
>
> when I run its giving me grokparse failure error.

That sounds like a Logstash issue with a grok pattern since Filebeat doesn't do grok.

---

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [August 1, 2017, 9:48pm UTC](https://discuss.elastic.co/t/multiline-codec-in-filebeats/95418/3 "2017-08-01T21:48:19Z")

</div>

oh okay!

Thanks for the reply!

---

<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 29, 2017, 9:48pm UTC](https://discuss.elastic.co/t/multiline-codec-in-filebeats/95418/4 "2017-08-29T21:48:42Z")

</div>

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