grok
The grok
library allows you to quickly parse and match potentially unstructured data into a structed result. It is especially helpful when parsing logfiles of all kinds. This Rust version is mainly a port from the java version which in drew inspiration from the original ruby version.
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
and this to your crate root:
extern crate grok;
Here is a simple example which stores a pattern, compiles it and then matches a line on it:
extern crate grok;
use Grok;
License
grok
is distributed under the terms of the Apache License (Version 2.0).
See LICENSE for details.