Grok Constructor

Test grok patterns

This tries to parse a set of given logfile lines with a given grok regular expression (based on Oniguruma regular expressions ) and prints the matches for named patterns for each log line. You can also apply a multiline filter first.

Please enter some loglines for which you want to check a grok pattern, the grok expression that should match these, mark the pattern libraries you draw your patterns from and then press

You can also just try this out with a

random example

10.121.123.104 - - [01/Nov/2012:21:01:04 +0100] "GET /cluster HTTP/1.1" 200 1272
MATCHED
httpversion 1.1
request /cluster
timestamp 01/Nov/2012:21:01:04·+0100
auth
clientip 10.121.123.104
bytes 1272
response 200
ident
verb GET
10.121.123.104 - - [01/Nov/2012:21:01:17 +0100] "GET /cpc/auth.do?loginsetup=true&targetPage=%2Fcpc%2F HTTP/1.1" 302 466
MATCHED
httpversion 1.1
request /cpc/auth.do?loginsetup=true&targetPage=%2Fcpc%2F
timestamp 01/Nov/2012:21:01:17·+0100
auth
clientip 10.121.123.104
bytes 466
response 302
ident
verb GET
10.121.123.104 - - [01/Nov/2012:21:01:18 +0100] "GET /cpc?loginsetup=true&targetPage=%252Fcpc%252F HTTP/1.1" 302 -
MATCHED
httpversion 1.1
request /cpc?loginsetup=true&targetPage=%252Fcpc%252F
timestamp 01/Nov/2012:21:01:18·+0100
auth
clientip 10.121.123.104
bytes
response 302
ident
verb GET
10.121.123.104 - - [01/Nov/2012:21:01:18 +0100] "GET /cpc/auth.do?loginsetup=true&targetPage=%25252Fcpc%25252F&loginsetup=true HTTP/1.1" 302 494
MATCHED
httpversion 1.1
request /cpc/auth.do?loginsetup=true&targetPage=%25252Fcpc%25252F&loginsetup=true
timestamp 01/Nov/2012:21:01:18·+0100
auth
clientip 10.121.123.104
bytes 494
response 302
ident
verb GET