Logstash not able to break message into given fields


(Nitin Bhaisare) #1

I have a log which contains java stack traces and a line which is very simple like this:
[id] 002 [uri] /legacy/biology/v2/status
Grok Pattern: [%{DATA:id}]\s%{JAVAFILE:track_id}\s[%{DATA:uri}]\s%{DATA:path}
I am using fielbeat to get these types of line only using following configuration:

- input_type: log
  paths:
    - /home/nitin/nohup.out
  document_type: sys-app
  exclude_lines: ['^[[:space:]]', '^[[:alpha:]]', '^201']

I have two environments my test setup and production setup. On my test env. i can see all logs getting parsed without any grok parse failure. but on my production setup i dont see any grok parse failure but message is not broken into fields. Can somebody please help me this ??

I have been scratching my head for 1 week now..Please if anybody has any idea about this???

Thanks,
Nitin


(Nitin Bhaisare) #2

Although i am getting beats_input_codec_plain_applied...this is weird


(Magnus B├Ąck) #3

Please show

  • your Logstash configuration files and
  • an example event produced by Logstash (use a stdout { codec => rubydebug } output.

(system) #4

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