# Pass variables to ingestion pipeline through URL

**URL:** <https://discuss.elastic.co/t/pass-variables-to-ingestion-pipeline-through-url/73392>\
**Category:** Elasticsearch\
**Created:** [January 31, 2017, 4:20pm UTC](https://discuss.elastic.co/t/pass-variables-to-ingestion-pipeline-through-url/73392 "2017-01-31T16:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karok2m](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@karok2m](https://discuss.elastic.co/u/karok2m)\
**Post date:** [January 31, 2017, 4:20pm UTC](https://discuss.elastic.co/t/pass-variables-to-ingestion-pipeline-through-url/73392/1 "2017-01-31T16:20:32Z")

</div>

Is it possible to pass variables to the pipeline when using URL API ? I want to pass a field name to the pipeline, so that it can be used for processing different fields on ingestion requests to different indexes. Something like this:

curl -s -XPOST localhost:9200/index/type/\_bulk?pipeline=my\_pipeline?fieldname=foo ...

Elasticsearch version: 5.1.2

---

<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:** [February 28, 2017, 4:21pm UTC](https://discuss.elastic.co/t/pass-variables-to-ingestion-pipeline-through-url/73392/2 "2017-02-28T16:21:26Z")

</div>

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