Class GrokProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<GrokProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.GrokProcessor.Builder
- All Implemented Interfaces:
WithJson<GrokProcessor.Builder>,ObjectBuilder<GrokProcessor>
- Enclosing class:
- GrokProcessor
public static class GrokProcessor.Builder
extends ProcessorBase.AbstractBuilder<GrokProcessor.Builder>
implements ObjectBuilder<GrokProcessor>
Builder for
GrokProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGrokProcessor.final GrokProcessor.BuilderecsCompatibility(String value) Must be disabled or v1.final GrokProcessor.BuilderRequired - The field to use for grok expression parsing.final GrokProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.final GrokProcessor.BuilderpatternDefinitions(String key, String value) A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor.final GrokProcessor.BuilderpatternDefinitions(Map<String, String> map) A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor.final GrokProcessor.BuilderRequired - An ordered list of grok expression to match and extract named captures with.final GrokProcessor.BuilderRequired - An ordered list of grok expression to match and extract named captures with.protected GrokProcessor.Builderself()final GrokProcessor.BuildertraceMatch(Boolean value) Whentrue,_ingest._grok_match_indexwill be inserted into your matched document’s metadata with the index into the pattern found inpatternsthat matched.final GrokProcessor.BuildervalidateOnly(Boolean value) Whentrue, the processor does matching but does not extract structured fieldsMethods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ecsCompatibility
Must be disabled or v1. If v1, the processor uses patterns with Elastic Common Schema (ECS) field names.API name:
ecs_compatibility -
field
Required - The field to use for grok expression parsing.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
patternDefinitions
A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. Patterns matching existing names will override the pre-existing definition.API name:
pattern_definitionsAdds all entries of
maptopatternDefinitions. -
patternDefinitions
A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. Patterns matching existing names will override the pre-existing definition.API name:
pattern_definitionsAdds an entry to
patternDefinitions. -
patterns
Required - An ordered list of grok expression to match and extract named captures with. Returns on the first expression in the list that matches.API name:
patternsAdds all elements of
listtopatterns. -
patterns
Required - An ordered list of grok expression to match and extract named captures with. Returns on the first expression in the list that matches.API name:
patternsAdds one or more values to
patterns. -
traceMatch
Whentrue,_ingest._grok_match_indexwill be inserted into your matched document’s metadata with the index into the pattern found inpatternsthat matched.API name:
trace_match -
validateOnly
Whentrue, the processor does matching but does not extract structured fieldsAPI name:
validate_only -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<GrokProcessor.Builder>
-
build
Builds aGrokProcessor.- Specified by:
buildin interfaceObjectBuilder<GrokProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-