Multiline codec in filebeats


(SandhyaRani) #1

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


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?


(Andrew Kroh) #2

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


(SandhyaRani) #3

oh okay!

Thanks for the reply!


(system) #4

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