Package org.graylog2.grok
Interface GrokPatternService
- All Known Implementing Classes:
InMemoryGrokPatternService
,MongoDbGrokPatternService
public interface GrokPatternService
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbulkLoad
(Collection<String> patternIds) int
int
extractPatternNames
(String namedPattern) loadAll()
loadByName
(String name) match
(GrokPattern pattern, String sampleData) namedGroups
(Matcher matcher, Set<String> groupNames) save
(GrokPattern pattern) saveAll
(Collection<GrokPattern> patterns, GrokPatternService.ImportStrategy importStrategy) update
(GrokPattern pattern) boolean
validate
(GrokPattern pattern) boolean
validateAll
(Collection<GrokPattern> patterns)
-
Method Details
-
load
- Throws:
NotFoundException
-
loadByName
-
bulkLoad
-
loadAll
Set<GrokPattern> loadAll() -
save
- Throws:
ValidationException
-
update
- Throws:
ValidationException
-
saveAll
List<GrokPattern> saveAll(Collection<GrokPattern> patterns, GrokPatternService.ImportStrategy importStrategy) throws ValidationException - Throws:
ValidationException
-
match
Map<String,Object> match(GrokPattern pattern, String sampleData) throws io.krakens.grok.api.exception.GrokException - Throws:
io.krakens.grok.api.exception.GrokException
-
validate
- Throws:
io.krakens.grok.api.exception.GrokException
-
validateAll
boolean validateAll(Collection<GrokPattern> patterns) throws io.krakens.grok.api.exception.GrokException - Throws:
io.krakens.grok.api.exception.GrokException
-
delete
-
deleteAll
int deleteAll() -
extractPatternNames
-
namedGroups
-