Skip to content

Instantly share code, notes, and snippets.

@tegud
Created January 25, 2015 11:49
Show Gist options
  • Save tegud/a4030da9605396f980f3 to your computer and use it in GitHub Desktop.
Save tegud/a4030da9605396f980f3 to your computer and use it in GitHub Desktop.
Grok regex example
filter {
grok {
match => [ "url_path", "^(?:\/(?<url_language>en|de|es|it|fr))?(?:\/p(?<url_partner>[0-9]+))?(?:\/pv(?<url_partner_value>[0-9a-zA-Z]+))?(?<url_page>.*)$" ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment