Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 799 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 799 Bytes

Grok is a tool for parsing data (mostly log data)


Compile

just run maven pakage

mvn package

find the package in the target folder -> grok-{version}.jar

Dependencies

+gson +common-lang3 +named-regex

Use

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());

Maven repository

Visit NFLabs Maven repository

Getting help

mail: [email protected] See also

Info

Grok is a concept of Jordan Sissel