Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Codec multiline fix #238

Closed
wants to merge 3 commits into from
Closed

Codec multiline fix #238

wants to merge 3 commits into from

Conversation

glnds
Copy link

@glnds glnds commented Feb 7, 2014

Current errorous generation:

file {
codec => [multiline ['negate', true, 'pattern', '^[#|\d{4}', 'patterns_dir', '/opt/logstash/agent/etc/patterns', 'what' , 'previous']]
'format' => 'plain'
'path' => '/var/log/glassfish/greyhound/server.log'
'type' => 'glassfish'
}

With this fix changed to:

file {
codec => multiline {
'negate' => true
'pattern' => '^[#|\d{4}'
'patterns_dir' => '/opt/logstash/agent/etc/patterns'
'what' => 'previous'
}
'format' => 'plain'
'path' => '/var/log/glassfish/greyhound/server.log'
'type' => 'glassfish'
}

Current errorous generation:

file {
  codec => [multiline ['negate', true, 'pattern', '^\[\#\|\d{4}', 'patterns_dir',  '/opt/logstash/agent/etc/patterns', 'what' , 'previous']]
 'format' => 'plain'
 'path' => '/var/log/glassfish/greyhound/server.log'
 'type' => 'glassfish'
}

With this fix changed to:

file {
  codec => multiline {
    'negate' => true
    'pattern' => '^[#|\d{4}'
    'patterns_dir' => '/opt/logstash/agent/etc/patterns'
    'what' => 'previous'
  }
  'format' => 'plain'
  'path' => '/var/log/glassfish/greyhound/server.log'
  'type' => 'glassfish'
}
@glnds glnds mentioned this pull request Feb 7, 2014
@ChrisLundquist
Copy link
Collaborator

Fixed with #240

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants