Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Use a better logstash pipeline filter #3

Open
shazChaudhry opened this issue May 2, 2017 · 0 comments
Open

Use a better logstash pipeline filter #3

shazChaudhry opened this issue May 2, 2017 · 0 comments
Assignees

Comments

@shazChaudhry
Copy link
Owner

elk/logstash/config/pipeline/logstash.conf

# The following filter is a hack! The "de_dot" filter would be better.
filter {
  ruby {
    code => "
      event.to_hash.keys.each { |k| event[ k.gsub('.','_') ] = event.remove(k) if k.include?'.' }
    "
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant