Last active
August 29, 2015 14:15
-
-
Save lefthand/a28ebebc5d31e4b8992c to your computer and use it in GitHub Desktop.
Logstash Grok pattern for matchin the query type and primary table from a SQL query.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY %{WORD:query_type}(?:\\n)?%{SPACE}(?:(?:[\a-zA-Z()'0-9-_\*+,. ]+?)?(?:\\n)?%{SPACE}(?:FROM|INTO|TEMPORARY TABLE)(?:\\n)?%{SPACE})?(?:%{WORD}\.)?%{WORD:table} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment