Class GeoIpProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.GeoIpProcessor
- All Implemented Interfaces:
- ProcessorVariant,- JsonpSerializable
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBaseProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoIpProcessor>Json deserializer forGeoIpProcessor
- 
Method SummaryModifier and TypeMethodDescriptionProcessor variant kind.final StringThe database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory.final BooleanIftrue(and ifingest.geoip.downloader.eager.downloadisfalse), the missing database is downloaded when the pipeline is created.final Stringfield()Required - The field to get the ip address from for the geographical lookup.final BooleanIftrue, only the first found geoip data will be returned, even if the field contains an array.final BooleanIftrueandfielddoes not exist, the processor quietly exits without modifying the document.static GeoIpProcessorControls what properties are added to thetarget_fieldbased on the geoip lookup.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringThe field that will hold the geographical information looked up from the MaxMind database.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBasedescription, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant_toProcessor
- 
Field Details- 
_DESERIALIZERJson deserializer forGeoIpProcessor
 
- 
- 
Method Details- 
of
- 
_processorKindProcessor variant kind.- Specified by:
- _processorKindin interface- ProcessorVariant
 
- 
databaseFileThe database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory.API name: database_file
- 
fieldRequired - The field to get the ip address from for the geographical lookup.API name: field
- 
firstOnlyIftrue, only the first found geoip data will be returned, even if the field contains an array.API name: first_only
- 
ignoreMissingIftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name: ignore_missing
- 
propertiesControls what properties are added to thetarget_fieldbased on the geoip lookup.API name: properties
- 
targetFieldThe field that will hold the geographical information looked up from the MaxMind database.API name: target_field
- 
downloadDatabaseOnPipelineCreationIftrue(and ifingest.geoip.downloader.eager.downloadisfalse), the missing database is downloaded when the pipeline is created. Else, the download is triggered by when the pipeline is used as thedefault_pipelineorfinal_pipelinein an index.API name: download_database_on_pipeline_creation
- 
serializeInternal- Overrides:
- serializeInternalin class- ProcessorBase
 
- 
setupGeoIpProcessorDeserializerprotected static void setupGeoIpProcessorDeserializer(ObjectDeserializer<GeoIpProcessor.Builder> op) 
 
-