Skip to content

Instantly share code, notes, and snippets.

@timconradinc
Created March 29, 2013 20:22
Show Gist options
  • Save timconradinc/5273375 to your computer and use it in GitHub Desktop.
Save timconradinc/5273375 to your computer and use it in GitHub Desktop.
csv filter addition
# CSV filter. Takes an event field containing CSV data, parses it,
# and stores it as individual fields (can optionally specify the names).
#
# Example config:
# filter {
# grok {
# type => "SomeSyslogType"
# pattern => "%{SYSLOGTIMESTAMP} %{HOSTNAME} %{GREEDYDATA:csvdata}"
# }
#
# csv {
# type => "SomeSyslogType"
# csvdata => "@fields"
# }
# }
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment