Grok is a tool for parsing data (mostly log data)
just run maven pakage
mvn package
find the package in the target folder -> grok-{version}.jar
+gson +common-lang3 +named-regex
Grok g = new Grok();
g.addPatternFromFile(/path/to/pattern);
g.compile("%{URI}");
Match gm = g.match(yourlog);
gm.captures();
//See the result
System.out.println(gm.toJson());
Visit NFLabs Maven repository
mail: acorbacho@nflabs.com See also
Grok is a concept of Jordan Sissel