Class RedactProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.RedactProcessor
- All Implemented Interfaces:
ProcessorVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RedactProcessor>
Json deserializer forRedactProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final String
field()
Required - The field to be redactedfinal Boolean
Iftrue
andfield
does not exist or isnull
, the processor quietly exits without modifying the document.static RedactProcessor
API name:pattern_definitions
patterns()
Required - A list of grok expressions to match and redact named captures withfinal String
prefix()
Start a redacted section with this tokenprotected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Boolean
Iftrue
and the current license does not support running redact processors, then the processor quietly exits without modifying the documentfinal String
suffix()
End a redacted section with this tokenfinal Boolean
Iftrue
then ingest metadata_ingest._redact._is_redacted
is set totrue
if the document has been redactedMethods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forRedactProcessor
-
-
Method Details
-
of
public static RedactProcessor of(Function<RedactProcessor.Builder, ObjectBuilder<RedactProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKind
in interfaceProcessorVariant
-
field
Required - The field to be redactedAPI name:
field
-
patterns
Required - A list of grok expressions to match and redact named captures withAPI name:
patterns
-
patternDefinitions
API name:pattern_definitions
-
prefix
Start a redacted section with this tokenAPI name:
prefix
-
suffix
End a redacted section with this tokenAPI name:
suffix
-
ignoreMissing
Iftrue
andfield
does not exist or isnull
, the processor quietly exits without modifying the document.API name:
ignore_missing
-
skipIfUnlicensed
Iftrue
and the current license does not support running redact processors, then the processor quietly exits without modifying the documentAPI name:
skip_if_unlicensed
-
traceRedact
Iftrue
then ingest metadata_ingest._redact._is_redacted
is set totrue
if the document has been redactedAPI name:
trace_redact
-
serializeInternal
- Overrides:
serializeInternal
in classProcessorBase
-
setupRedactProcessorDeserializer
protected static void setupRedactProcessorDeserializer(ObjectDeserializer<RedactProcessor.Builder> op)
-