# Link Logstash Input plugins

**URL:** https://discuss.elastic.co/t/link-logstash-input-plugins/139637
**Category:** Logstash
**Created:** [July 11, 2018, 7:45pm UTC](https://discuss.elastic.co/t/link-logstash-input-plugins/139637 "2018-07-11T19:45:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pfseth](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pfseth](https://discuss.elastic.co/u/pfseth)
#### Post date: [July 11, 2018, 7:45pm UTC](https://discuss.elastic.co/t/link-logstash-input-plugins/139637/1 "2018-07-11T19:45:46Z")

</div>

Is there any way to link input plugins ?

For example

The result of `exec` -- is an input to --\> `file`

```
input {

      exec {
        command => "cd /logs; tshark -r working.pcap -T ek > working.json"
        interval => 30
      }

      file {
        path => "/logs/working.json"
        start_position => "beginning"
      }
    }
```

---

<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: [July 11, 2018, 8:15pm UTC](https://discuss.elastic.co/t/link-logstash-input-plugins/139637/2 "2018-07-11T20:15:36Z")

</div>

There's no general support for linking input plugins (it's not clear to me what such a feature would even look like), but the special case in your example should work fine (assuming that the command is passed to a shell; I don't recall if that's the case).

---

<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: [August 8, 2018, 8:28pm UTC](https://discuss.elastic.co/t/link-logstash-input-plugins/139637/3 "2018-08-08T20:28:28Z")

</div>

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