Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
/ java-grok Public archive
forked from thekrakken/java-grok

Grok is a great tool for parsing log data

License

Notifications You must be signed in to change notification settings

wouterdb/java-grok

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: acorbacho@nflabs.com See also

Info

Grok is a concept of Jordan Sissel

About

Grok is a great tool for parsing log data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%