# Access pipeline id inside pipeline config

**URL:** https://discuss.elastic.co/t/access-pipeline-id-inside-pipeline-config/118428
**Category:** Logstash
**Created:** [February 5, 2018, 11:07am UTC](https://discuss.elastic.co/t/access-pipeline-id-inside-pipeline-config/118428 "2018-02-05T11:07:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mariusz\_Gorski](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mariusz\_Gorski](https://discuss.elastic.co/u/Mariusz_Gorski)
#### Post date: [February 5, 2018, 11:07am UTC](https://discuss.elastic.co/t/access-pipeline-id-inside-pipeline-config/118428/1 "2018-02-05T11:07:00Z")

</div>

Hi there elastic community !

As I stumbled upon an idea that hasn't been addressed here (or at least I haven't found such topic) - here goes my first post !

I am looking for a way to access pipeline.id option (from pipelines.yml) inside logstash config file that has been configured under path.config field. For example, for entry:

- pipeline.id: oracle\_table\_1  
path.config: "/usr/share/logstash/pipeline/test.config"  
pipeline.workers: 1
- pipeline.id: oracle\_table\_2  
path.config: "/usr/share/logstash/pipeline/test.config"  
pipeline.workers: 1

I'd like to reuse test.config for collecting data from multiple different oracle tables. For this config I'd like download data from oracle\_table\_1 table to index test\_oracle\_table\_1 amd data from oracle\_table\_2 to index test\_oracle\_table\_2. I'd like to perform it generically instead of creating as many configs as tables.

Is there a way to achieve this ?

Many thanks for help,  
Mariusz

---

<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: [March 5, 2018, 11:07am UTC](https://discuss.elastic.co/t/access-pipeline-id-inside-pipeline-config/118428/2 "2018-03-05T11:07:23Z")

</div>

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