Class UserAgentProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.UserAgentProcessor
- All Implemented Interfaces:
ProcessorVariant,JsonpSerializable
@JsonpDeserializable
public class UserAgentProcessor
extends ProcessorBase
implements ProcessorVariant
- 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<UserAgentProcessor>Json deserializer forUserAgentProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final BooleanExtracts device type from the user agent string on a best-effort basis.final Stringfield()Required - The field containing the user agent string.final BooleanIftrueandfielddoes not exist, the processor quietly exits without modifying the document.static UserAgentProcessorfinal List<UserAgentProperty>Controls what properties are added totarget_field.final StringThe name of the file in theconfig/ingest-user-agentdirectory containing the regular expressions for parsing the user agent string.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringThe field that will be filled with the user agent details.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forUserAgentProcessor
-
-
Method Details
-
of
public static UserAgentProcessor of(Function<UserAgentProcessor.Builder, ObjectBuilder<UserAgentProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
field
Required - The field containing the user agent string.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
regexFile
The name of the file in theconfig/ingest-user-agentdirectory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use theregexes.yamlfrom uap-core it ships with.API name:
regex_file -
targetField
The field that will be filled with the user agent details.API name:
target_field -
properties
Controls what properties are added totarget_field.API name:
properties -
extractDeviceType
Extracts device type from the user agent string on a best-effort basis.API name:
extract_device_type -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupUserAgentProcessorDeserializer
protected static void setupUserAgentProcessorDeserializer(ObjectDeserializer<UserAgentProcessor.Builder> op)
-