# Default ingest pipeline for index?

**URL:** <https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511>\
**Category:** Elasticsearch\
**Created:** [March 12, 2018, 9:11am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511 "2018-03-12T09:11:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fluorescence](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@Fluorescence](https://discuss.elastic.co/u/Fluorescence)\
**Post date:** [March 12, 2018, 9:11am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/1 "2018-03-12T09:11:19Z")

</div>

Hi there,

about a year ago there was a topic raised in this forum for getting a default ingest pipeline option as described here:

> <https://github.com/elastic/elasticsearch/issues/21101>

Does someone has any news on this or any alternative?

Background on this question is, to create a time stamp (as it was deprecated in V2 and later removed) without having the option to modify REST calls for inserts. Why one would need this? The application can create/use a date field, but there are transport elements in between which can not be controlled, therefore one wants to know, when the actual application event reaches the elasticsearch node to calculate the delay and statistical distributions.

Thank you.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 12, 2018, 9:18am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/2 "2018-03-12T09:18:55Z")

</div>

You can do this using a named pipeline. An example of how this can be done [is available here](https://gist.github.com/cdahlqvist/e713b39f0c17d85e613f56408a7facd5).

---

<div class="post-metadata">

**Author:** ![Fluorescence](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@Fluorescence](https://discuss.elastic.co/u/Fluorescence)\
**Post date:** [March 12, 2018, 9:36am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/3 "2018-03-12T09:36:14Z")

</div>

Hi, thanks for the link. If I understand this right I need to modify the REST call for the named pipeline (this version I tested already earlier and it works):

http://Elasticsearchnode:9200/../ **?pipeline=add\_timestamp**

But I have no access to the application code or the application system. Was this understanding right or did I overlook something here?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 12, 2018, 9:45am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/4 "2018-03-12T09:45:59Z")

</div>

That is correct. The REST call need to be modified in order to make use of the pipeline.

---

<div class="post-metadata">

**Author:** ![Fluorescence](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@Fluorescence](https://discuss.elastic.co/u/Fluorescence)\
**Post date:** [March 12, 2018, 9:56am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/5 "2018-03-12T09:56:49Z")

</div>

Do you have an option which could work without this modification? I guess this was the reason the request for the default pipeline was raised.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 12, 2018, 10:35am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/6 "2018-03-12T10:35:26Z")

</div>

No, I do not think that is possible.

---

<div class="post-metadata">

**Author:** ![Fluorescence](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@Fluorescence](https://discuss.elastic.co/u/Fluorescence)\
**Post date:** [March 12, 2018, 11:41am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/7 "2018-03-12T11:41:34Z")

</div>

Thank you very much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 9, 2018, 11:41am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/123511/8 "2018-04-09T11:41:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
