| Package | Description |
|---|---|
| io.thekraken.grok.api |
| Modifier and Type | Method and Description |
|---|---|
void |
Grok.addPattern(String name,
String pattern)
Add custom pattern to grok in the runtime.
|
void |
Grok.addPatternFromFile(String file)
Add patterns to
Grok from the given file. |
void |
Grok.addPatternFromReader(Reader r)
Add patterns to
Grok from a Reader. |
void |
Grok.compile(String pattern)
Compile the
Grok pattern to named regex pattern. |
void |
Grok.compile(String pattern,
boolean namedOnly)
Compile the
Grok pattern to named regex pattern. |
void |
Grok.copyPatterns(Map<String,String> cpy)
Copy the given Map of patterns (pattern name, regular expression) to
Grok,
duplicate element will be override. |
static Grok |
Grok.create(String grokPatternPath)
Create a
Grok instance with the given grok patterns file. |
static Grok |
Grok.create(String grokPatternPath,
String grokExpression)
Create a
Grok instance with the given patterns file and
a Grok pattern. |
Copyright © 2016. All rights reserved.