logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Search::Elasticsearch::Client::8_0::Direct::Ingest - A client for accessing the Ingest API

Author

       Enrico Zimuel <enrico.zimuel@elastic.co>

Description

       This module provides methods to access the Ingest API, such as creating, getting, deleting and simulating
       ingest pipelines.

       It does Search::Elasticsearch::Role::Client::Direct.

Methods

put_pipeline()
           $response = $e->ingest->put_pipeline(
               id   => $id,                # required
               body => { pipeline defn }   # required
           );

       The put_pipeline() method creates or updates a pipeline with the specified ID.

       Query string parameters:
           "error_trace",
           "human",
           "master_timeout",
           "timeout"

       See the put pipeline docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/put-pipeline-
       api.html> for more information.

   get_pipeline()
           $response = $e->ingest->get_pipeline(
               id   => \@id,               # optional
           );

       The get_pipeline() method returns pipelines with the specified IDs (or all pipelines).

       Query string parameters:
           "error_trace",
           "human",
           "master_timeout",
           "timeout"

       See the get pipeline docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/get-pipeline-
       api.html> for more information.

   delete_pipeline()
           $response = $e->ingest->delete_pipeline(
               id   => $id,                # required
           );

       The delete_pipeline() method deletes the pipeline with the specified ID.

       Query string parameters:
           "error_trace",
           "human",
           "master_timeout",
           "timeout"

       See the delete pipeline docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-
       pipeline-api.html> for more information.

   simulate()
           $response = $e->ingest->put_pipeline(
               id   => $id,                # optional
               body => { simulate args }   # required
           );

       The simulate() method executes the pipeline specified by ID or inline in the body against the docs
       provided in the body and provides debugging output of the execution process.

       Query string parameters:
           "error_trace",
           "human",
           "verbose"

       See the simulate pipeline docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-
       pipeline-api.html> for more information.

   simulate()
           $response = $e->ingest->put_pipeline(
               id   => $id,                # optional
               body => { simulate args }   # required
           );

       The simulate() method executes the pipeline specified by ID or inline in the body against the docs
       provided in the body and provides debugging output of the execution process.

       Query string parameters:
           "error_trace",
           "human",
           "verbose"

       See the simulate pipeline docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-
       pipeline-api.html> for more information.

   "processor_grok"
           $response = $e->inges->processor_grok()

       Retrieves the configured patterns associated with the Grok processor.

       Query string parameters:
           "error_trace",
           "human"

       See the grok processor docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-
       processor.html> for more information.

Name

       Search::Elasticsearch::Client::8_0::Direct::Ingest - A client for accessing the Ingest API

Version

       version 8.12

See Also