Class ElasticsearchIngestClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchIngestClient
(ElasticsearchTransport transport) ElasticsearchIngestClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionDelete GeoIP database configurations.deleteGeoipDatabase
(Function<DeleteGeoipDatabaseRequest.Builder, ObjectBuilder<DeleteGeoipDatabaseRequest>> fn) Delete GeoIP database configurations.Delete IP geolocation database configurations.deleteIpLocationDatabase
(Function<DeleteIpLocationDatabaseRequest.Builder, ObjectBuilder<DeleteIpLocationDatabaseRequest>> fn) Delete IP geolocation database configurations.deletePipeline
(DeletePipelineRequest request) Delete pipelines.final DeletePipelineResponse
Delete pipelines.Get GeoIP statistics.Get GeoIP database configurations.getGeoipDatabase
(GetGeoipDatabaseRequest request) Get GeoIP database configurations.final GetGeoipDatabaseResponse
getGeoipDatabase
(Function<GetGeoipDatabaseRequest.Builder, ObjectBuilder<GetGeoipDatabaseRequest>> fn) Get GeoIP database configurations.Get IP geolocation database configurations.Get IP geolocation database configurations.getIpLocationDatabase
(Function<GetIpLocationDatabaseRequest.Builder, ObjectBuilder<GetIpLocationDatabaseRequest>> fn) Get IP geolocation database configurations.Get pipelines.getPipeline
(GetPipelineRequest request) Get pipelines.final GetPipelineResponse
Get pipelines.Run a grok processor.putGeoipDatabase
(PutGeoipDatabaseRequest request) Create or update a GeoIP database configuration.final PutGeoipDatabaseResponse
putGeoipDatabase
(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) Create or update a GeoIP database configuration.Create or update an IP geolocation database configuration.putIpLocationDatabase
(Function<PutIpLocationDatabaseRequest.Builder, ObjectBuilder<PutIpLocationDatabaseRequest>> fn) Create or update an IP geolocation database configuration.putPipeline
(PutPipelineRequest request) Create or update a pipeline.final PutPipelineResponse
Create or update a pipeline.simulate
(SimulateRequest request) Simulate a pipeline.final SimulateResponse
Simulate a pipeline.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchIngestClient
-
ElasticsearchIngestClient
public ElasticsearchIngestClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchIngestClient>
-
deleteGeoipDatabase
public DeleteGeoipDatabaseResponse deleteGeoipDatabase(DeleteGeoipDatabaseRequest request) throws IOException, ElasticsearchException Delete GeoIP database configurations.Delete one or more IP geolocation database configurations.
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteGeoipDatabase
public final DeleteGeoipDatabaseResponse deleteGeoipDatabase(Function<DeleteGeoipDatabaseRequest.Builder, ObjectBuilder<DeleteGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionDelete GeoIP database configurations.Delete one or more IP geolocation database configurations.
- Parameters:
fn
- a function that initializes a builder to create theDeleteGeoipDatabaseRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteIpLocationDatabase
public DeleteIpLocationDatabaseResponse deleteIpLocationDatabase(DeleteIpLocationDatabaseRequest request) throws IOException, ElasticsearchException Delete IP geolocation database configurations.- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteIpLocationDatabase
public final DeleteIpLocationDatabaseResponse deleteIpLocationDatabase(Function<DeleteIpLocationDatabaseRequest.Builder, ObjectBuilder<DeleteIpLocationDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionDelete IP geolocation database configurations.- Parameters:
fn
- a function that initializes a builder to create theDeleteIpLocationDatabaseRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePipeline
public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Delete pipelines. Delete one or more ingest pipelines.- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePipeline
public final DeletePipelineResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDelete pipelines. Delete one or more ingest pipelines.- Parameters:
fn
- a function that initializes a builder to create theDeletePipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
geoIpStats
Get GeoIP statistics. Get download statistics for GeoIP2 databases that are used with the GeoIP processor.- Throws:
IOException
ElasticsearchException
- See Also:
-
getGeoipDatabase
public GetGeoipDatabaseResponse getGeoipDatabase(GetGeoipDatabaseRequest request) throws IOException, ElasticsearchException Get GeoIP database configurations.Get information about one or more IP geolocation database configurations.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getGeoipDatabase
public final GetGeoipDatabaseResponse getGeoipDatabase(Function<GetGeoipDatabaseRequest.Builder, ObjectBuilder<GetGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionGet GeoIP database configurations.Get information about one or more IP geolocation database configurations.
- Parameters:
fn
- a function that initializes a builder to create theGetGeoipDatabaseRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getGeoipDatabase
Get GeoIP database configurations.Get information about one or more IP geolocation database configurations.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getIpLocationDatabase
public GetIpLocationDatabaseResponse getIpLocationDatabase(GetIpLocationDatabaseRequest request) throws IOException, ElasticsearchException Get IP geolocation database configurations.- Throws:
IOException
ElasticsearchException
- See Also:
-
getIpLocationDatabase
public final GetIpLocationDatabaseResponse getIpLocationDatabase(Function<GetIpLocationDatabaseRequest.Builder, ObjectBuilder<GetIpLocationDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionGet IP geolocation database configurations.- Parameters:
fn
- a function that initializes a builder to create theGetIpLocationDatabaseRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getIpLocationDatabase
public GetIpLocationDatabaseResponse getIpLocationDatabase() throws IOException, ElasticsearchExceptionGet IP geolocation database configurations.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Get pipelines.Get information about one or more ingest pipelines. This API returns a local reference of the pipeline.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionGet pipelines.Get information about one or more ingest pipelines. This API returns a local reference of the pipeline.
- Parameters:
fn
- a function that initializes a builder to create theGetPipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
Get pipelines.Get information about one or more ingest pipelines. This API returns a local reference of the pipeline.
- Throws:
IOException
ElasticsearchException
- See Also:
-
processorGrok
Run a grok processor. Extract structured fields out of a single text field within a document. You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. A grok pattern is like a regular expression that supports aliased expressions that can be reused.- Throws:
IOException
ElasticsearchException
- See Also:
-
putGeoipDatabase
public PutGeoipDatabaseResponse putGeoipDatabase(PutGeoipDatabaseRequest request) throws IOException, ElasticsearchException Create or update a GeoIP database configuration.Refer to the create or update IP geolocation database configuration API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
putGeoipDatabase
public final PutGeoipDatabaseResponse putGeoipDatabase(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a GeoIP database configuration.Refer to the create or update IP geolocation database configuration API.
- Parameters:
fn
- a function that initializes a builder to create thePutGeoipDatabaseRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putIpLocationDatabase
public PutIpLocationDatabaseResponse putIpLocationDatabase(PutIpLocationDatabaseRequest request) throws IOException, ElasticsearchException Create or update an IP geolocation database configuration.- Throws:
IOException
ElasticsearchException
- See Also:
-
putIpLocationDatabase
public final PutIpLocationDatabaseResponse putIpLocationDatabase(Function<PutIpLocationDatabaseRequest.Builder, ObjectBuilder<PutIpLocationDatabaseRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update an IP geolocation database configuration.- Parameters:
fn
- a function that initializes a builder to create thePutIpLocationDatabaseRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putPipeline
public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Create or update a pipeline. Changes made using this API take effect immediately.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPipeline
public final PutPipelineResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a pipeline. Changes made using this API take effect immediately.- Parameters:
fn
- a function that initializes a builder to create thePutPipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
simulate
public SimulateResponse simulate(SimulateRequest request) throws IOException, ElasticsearchException Simulate a pipeline.Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
- Throws:
IOException
ElasticsearchException
- See Also:
-
simulate
public final SimulateResponse simulate(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) throws IOException, ElasticsearchExceptionSimulate a pipeline.Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
- Parameters:
fn
- a function that initializes a builder to create theSimulateRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-