Grok is a tool for parsing data (mostly log data)
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());
See App.java
mail: acorbacho@nflabs.com See also
Grok is originally developed in C by Jordan Sissel