Skip to content

Instantly share code, notes, and snippets.

@kylejohnson
Created January 8, 2018 16:41
Show Gist options
  • Select an option

  • Save kylejohnson/3eb46c7806ecfd5827055eb1afb83cb1 to your computer and use it in GitHub Desktop.

Select an option

Save kylejohnson/3eb46c7806ecfd5827055eb1afb83cb1 to your computer and use it in GitHub Desktop.
filter {
if [type] == "telemetry" {
geoip { source => "ip" }
} else if [fields][type] == "telemetry" {
# How do I target a nested field here, vs. what is above?
geoip { source => "[message][ip]" }
prune { blacklist_names => [ "[message][headers]" ] }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment