Expand description
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.
Structs§
- Grok
- The
Grok
struct is the main entry point into using this library. - Matches
- The
Matches
represent matched results from aPattern
against a provided text. - Matches
Iter - An
Iterator
over all matches, accessible viaMatches
. - Pattern
- The
Pattern
represents a compiled regex, ready to be matched against arbitrary text.
Enums§
- Error
- Errors that can occur when using this library.
Functions§
- patterns
- Returns the default patterns, also used by the default constructor of
Grok
.