# Pipeline virtual address from Filbeat event field

**URL:** <https://discuss.elastic.co/t/pipeline-virtual-address-from-filbeat-event-field/223665>\
**Category:** Logstash\
**Created:** [March 15, 2020, 8:05pm UTC](https://discuss.elastic.co/t/pipeline-virtual-address-from-filbeat-event-field/223665 "2020-03-15T20:05:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjne](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@sjne](https://discuss.elastic.co/u/sjne)\
**Post date:** [March 15, 2020, 8:05pm UTC](https://discuss.elastic.co/t/pipeline-virtual-address-from-filbeat-event-field/223665/1 "2020-03-15T20:05:36Z")

</div>

Is it possible to get the pipeline-to-pipeline virtual address by accessing event fields? Sort of like this:

Filebeat config

```
filebeat.inputs:
- type: log
  enabled: true
  fields: { instance_id: "first" }
  paths:
    - /home/user/logs/first.log

output.logstash:
  hosts: ["myhost:5044"]

```

Logstash config

```
- pipeline.id: gateway
  config.string: |
    input { beats { port => 5044 } }
    output { pipeline { send_to => "%{[fields][instance_id]}" } }

- pipeline.id: first
  config.string: |
    input { pipeline { address => first } }
    filter {
    # do something 
    }
    output { file { path => "/home/syslogdb/first.log" } }

```

I tried this with Logstash 7.6 but didn't manage to get it working. Is my syntax off or is this not possible? Thanks!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 15, 2020, 11:16pm UTC](https://discuss.elastic.co/t/pipeline-virtual-address-from-filbeat-event-field/223665/2 "2020-03-15T23:16:44Z")

</div>

It is not possible. All of the pipelines are created and inter-connected before any events are processed.

---

<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 12, 2020, 11:16pm UTC](https://discuss.elastic.co/t/pipeline-virtual-address-from-filbeat-event-field/223665/3 "2020-04-12T23:16:45Z")

</div>

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