# Get Task from index.default\_pipeline

**URL:** <https://discuss.elastic.co/t/get-task-from-index-default-pipeline/366037>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [September 4, 2024, 1:46pm UTC](https://discuss.elastic.co/t/get-task-from-index-default-pipeline/366037 "2024-09-04T13:46:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shell\_Dias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shell_dias/32/136785_2.png) [@Shell\_Dias](https://discuss.elastic.co/u/Shell_Dias)\
**Post date:** [September 4, 2024, 1:46pm UTC](https://discuss.elastic.co/t/get-task-from-index-default-pipeline/366037/1 "2024-09-04T13:46:11Z")

</div>

I have a mapping that by default creates an index with the `index.default_pipeline` configuration pointing to an ingest pipeline.

```auto

PUT search-d
{
  "settings": {
    "index.default_pipeline": "e5-small-ingest-pipeline"
   ....
}

```

```auto
{
  "description": "Pipeline de ingestão e5-small",
  "processors": [
    {
      "inference": {
        "model_id": ".multilingual-e5-small_linux-x86_64",
        "input_output": [
          {
            "input_field": "text",
            "output_field": "text_embedding"
          }
        ]
      }
    }
  ],
  "on_failure": [
    {
      "set": {
        "description": "Index document to 'failed-<index>'",
        "field": "_index",
        "value": "failed-{{{_index}}}"
      }
    },
    {
      "set": {
        "description": "Set error message",
        "field": "ingest.failure",
        "value": "{{_ingest.on_failure_message}}"
      }
    }
  ]
}

```

Is it possible to retrieve the task value or determine if this ingest pipeline is being executed?

The pipeline is failing, and even with the failure command, the index is not being created.

It is creating a field within the document itself but not creating the index as it should be. How should the command be executed

`ingest.failure : inference process queue is full. Unable to execute command`

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [September 5, 2024, 1:46pm UTC](https://discuss.elastic.co/t/get-task-from-index-default-pipeline/366037/2 "2024-09-05T13:46:29Z")

</div>

> [@Shell\_Dias](#):
>
> Is it possible to... determine if this ingest pipeline is being executed?

If you are using 8.12.0 or newer, you can set `list_executed_pipelines` to `true` in your bulk request to get the list of pipelines that were executed ([Bulk API | Elasticsearch Guide [8.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#docs-bulk-api-query-params)).

---

<div class="post-metadata">

**Author:** ![Shell\_Dias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shell_dias/32/136785_2.png) [@Shell\_Dias](https://discuss.elastic.co/u/Shell_Dias)\
**Post date:** [September 5, 2024, 3:45pm UTC](https://discuss.elastic.co/t/get-task-from-index-default-pipeline/366037/3 "2024-09-05T15:45:37Z")

</div>

Sorry, I'm confused. I don't pass the pipeline in the request; it is configured internally in my index. I only insert the document, and the pipeline is triggered automatically. I am using insertion via Logstash.

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [September 9, 2024, 1:53pm UTC](https://discuss.elastic.co/t/get-task-from-index-default-pipeline/366037/4 "2024-09-09T13:53:11Z")

</div>

> [@Shell\_Dias](#):
>
> I am using insertion via Logstash.

Oh OK I did not realize Logstash was involved. My suggestion won't work with logstash -- it only works if you're calling the `_bulk` API directly.
