# Get worker id/info in pipeline

**URL:** <https://discuss.elastic.co/t/get-worker-id-info-in-pipeline/134683>\
**Category:** Logstash\
**Created:** [June 5, 2018, 7:21pm UTC](https://discuss.elastic.co/t/get-worker-id-info-in-pipeline/134683 "2018-06-05T19:21:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikt25](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@Mikt25](https://discuss.elastic.co/u/Mikt25)\
**Post date:** [June 5, 2018, 7:21pm UTC](https://discuss.elastic.co/t/get-worker-id-info-in-pipeline/134683/1 "2018-06-05T19:21:30Z")

</div>

Is there a way to get a numeric workerId programmatically? For instance if "pipeline.workers: 4" then within a filter be able to retrieve a value 1, 2, 3, or 4 depending on what worker is processing.

---

<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:** [July 3, 2018, 7:21pm UTC](https://discuss.elastic.co/t/get-worker-id-info-in-pipeline/134683/2 "2018-07-03T19:21:35Z")

</div>

Closed on July 3, 2018, 7:21pm UTC

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