Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstash 2.3.4 issue [solved] #35

Closed
paltryeffort opened this issue Aug 10, 2016 · 4 comments
Closed

Logstash 2.3.4 issue [solved] #35

paltryeffort opened this issue Aug 10, 2016 · 4 comments

Comments

@paltryeffort
Copy link

Hi,
I upgraded my logstash server to 2.3.4 using this filter.

After about a week the java process died with "out of heap space". Increasing the heap didn't help, it just took longer until the java process died.

After long hours of debugging I found a solution to this:

In the file 2030_filter_section_c_parse.conf I replaced the lines:

  grok {
    match => {
      "rawSectionC" => "(?<requestBody>.+)"
    }

with

  mutate {
    add_field => { "requestBody" => "%{rawSectionC}" }
  }

It basically just copies the field rawSectionC to requestBody. That's also what the grok is doing. For me the result is the same.

My logstash 2.3.4 server is running now a couple of weeks with this config without any issues.

For anyone using this filter with logstash 2.x you should also replace the line in the inputs from

  charset => "US-ASCII"

to

 codec => plain { charset => "US-ASCII" }

Other than that the filter is working fine for me with the new logstash version.

@bitsofinfo
Copy link
Owner

Can you please submit a pull-request w/ the affected fix? I will then create a new release

@bitsofinfo
Copy link
Owner

Also is the change backwards compatible?

@bitsofinfo
Copy link
Owner

@paltryeffort do you have a PR?

@bitsofinfo
Copy link
Owner

@paltryeffort PR?

bitsofinfo added a commit that referenced this issue May 19, 2017
fix for #35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants