Skip to content

Instantly share code, notes, and snippets.

@untergeek
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save untergeek/df63f74c2f168f777e40 to your computer and use it in GitHub Desktop.
Save untergeek/df63f74c2f168f777e40 to your computer and use it in GitHub Desktop.
apache pruning
if [type] == "apache_json" {
geoip { source => "clientip" }
if [useragent] != "" { useragent { source => "useragent" } }
if [auth] == "-" { mutate { remove_field => "auth" } }
if [ident] == "-" { mutate { remove_field => "ident" } }
if [referer] == "-" { mutate { remove_field => "referer" } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment