# Pipeline IDs as variables?

**URL:** <https://discuss.elastic.co/t/pipeline-ids-as-variables/146252>\
**Category:** Logstash\
**Created:** [August 28, 2018, 12:04am UTC](https://discuss.elastic.co/t/pipeline-ids-as-variables/146252 "2018-08-28T00:04:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceekay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ceekay/32/5687_2.png) [@ceekay](https://discuss.elastic.co/u/ceekay)\
**Post date:** [August 28, 2018, 12:04am UTC](https://discuss.elastic.co/t/pipeline-ids-as-variables/146252/1 "2018-08-28T00:04:40Z")

</div>

Is it possible to get the pipeline ID from inside a Logstash config?

I have a monitoring script that gets the pipeline IDs from the Logstash API, and checks a file with the same name to see if the heartbeat is current.

Being able to use a variable for the filename would mean I can have the same output config for each pipeline, instead of manually naming each heartbeat file in a bunch of separate configs.

I've tried guessing a few variable names, but no luck.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 28, 2018, 7:43am UTC](https://discuss.elastic.co/t/pipeline-ids-as-variables/146252/2 "2018-08-28T07:43:03Z")

</div>

I don't believe this is available, but it sounds like a reasonable feature request so I suggest you file a GitHub issue.

---

<div class="post-metadata">

**Author:** ![ceekay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ceekay/32/5687_2.png) [@ceekay](https://discuss.elastic.co/u/ceekay)\
**Post date:** [September 10, 2018, 11:20pm UTC](https://discuss.elastic.co/t/pipeline-ids-as-variables/146252/3 "2018-09-10T23:20:15Z")

</div>

Sorry about the late update - I opened this issue a while ago at [https://github.com/elastic/logstash/issues/9947](https://github.com/elastic/logstash/issues/9947)

---

<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:** [October 8, 2018, 11:20pm UTC](https://discuss.elastic.co/t/pipeline-ids-as-variables/146252/4 "2018-10-08T23:20:31Z")

</div>

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