Search...Ingest(3pm)
π NAME π
okay so bestie, welcome to Search::Elasticsearch::Client::8_0::Direct::Ingest β it's a whole client for talking to the Ingest API. Yes it's a Perl module (the (3pm) at the top is just its little manual-page birthmark, iykyk). πΈ
β¨ VERSION β¨
version 8.12 β that's the vibe check, and it passed. π
π¦ DESCRIPTION π¦
So basically this module hands you the methods you need to hit up the Ingest API β think creating, getting, deleting and simulating ingest pipelines. All the pipeline stuff. All of it. Obsessed. π
It also does Search::Elasticsearch::Role::Client::Direct. That's the role it carries, no cap.
π 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 ID you gave it. New pipeline? Updated pipeline? It doesn't care, it slays either way. β¨
Query string parameters:
"error_trace""human""master_timeout""timeout"
See the put pipeline docs at <https://www.elastic.co/guide/en/elasticsearch/reference/current/put-pipeline-api.html> for more info. π«Ά
πΈ get_pipeline()
$response = $e->ingest->get_pipeline(
id => \@id, # optional
);
The get_pipeline() method returns the pipelines with the IDs you asked for β or, if you don't specify, all the pipelines. Main character energy, it's giving generous. π
Query string parameters:
"error_trace""human""master_timeout""timeout"
See the get pipeline docs at <https://www.elastic.co/guide/en/elasticsearch/reference/current/get-pipeline-api.html> for more info. π
π delete_pipeline()
$response = $e->ingest->delete_pipeline(
id => $id, # required
);
The delete_pipeline() method deletes the pipeline with the ID you specified. Gone. Poof. Not me crying over a pipeline π
Query string parameters:
"error_trace""human""master_timeout""timeout"
See the delete pipeline docs at <https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-pipeline-api.html> for more info. π§
β simulate()
$response = $e->ingest->put_pipeline(
id => $id, # optional
body => { simulate args } # required
);
The simulate() method runs the pipeline β either the one you named by ID or the one you wrote inline in the body β against the docs you put in the body, and then gives you the debugging output of the whole execution process. It's the rehearsal, bestie. π
Query string parameters:
"error_trace""human""verbose"
See the simulate pipeline docs at <https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html> for more info. π
β simulate() (yes, again, and we're not sorry)
$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 gives you debugging output of the execution process. Same energy, twice the icon. π
Query string parameters:
"error_trace""human""verbose"
See the simulate pipeline docs at <https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html> for more info. π
π
"processor_grok"
$response = $e->inges->processor_grok()
Retrieves the configured patterns associated with the Grok processor. Grok processor patterns, unlocked. π₯
Query string parameters:
"error_trace""human"
See the grok processor docs at <https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html> for more info. π
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β shoutout to the legend, fr fr π«Ά
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2024 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
ok that's the whole page bestie, go forth and ingest πβ¨
and that's a wrap β brought to you by perl v5.38.2, dated 2024-02-04, straight out of the Search...Ingest(3pm) manual. mwah π
π¦ where this page comes from
- debian trixie: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms