Skip to content

Instantly share code, notes, and snippets.

@tegud
Created January 25, 2015 11:13
Show Gist options
  • Save tegud/bd9dbbec26234eb6135b to your computer and use it in GitHub Desktop.
Save tegud/bd9dbbec26234eb6135b to your computer and use it in GitHub Desktop.
Translate Plugin Example
filter {
translate {
regex => true
field => "url_page"
destination => "url_page_type"
fallback => "unknown"
dictionary => [
"\/((k[0-9]+_[a-zA-Z0-9\-\%'()]*)|(r[0-9]+_hotel[a-zA-Z0-9\-\%'()]*)|((H|h)otels(-p[0-9]+)?)|(AjaxSearch|Mobile(Ajax|Search)))\.aspx$", "search"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment