# Execute pipeline on a specific host only

**URL:** https://discuss.elastic.co/t/execute-pipeline-on-a-specific-host-only/148074
**Category:** Logstash
**Created:** [September 11, 2018, 7:34am UTC](https://discuss.elastic.co/t/execute-pipeline-on-a-specific-host-only/148074 "2018-09-11T07:34:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![darefilz](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@darefilz](https://discuss.elastic.co/u/darefilz)
#### Post date: [September 11, 2018, 7:34am UTC](https://discuss.elastic.co/t/execute-pipeline-on-a-specific-host-only/148074/1 "2018-09-11T07:34:38Z")

</div>

Hello,

we run Logstash in a Docker Swarm like mode. Sometimes, there is only one instance running, sometimes eight depending on various parameters. There only one config for all instances.  
One of our inputs is a scheduled [Jdbc](https://www.elastic.co/guide/en/logstash/5.6/plugins-inputs-jdbc.html). But since we use it to import data from a SQL server, we need to run it only once at a time, i. e. on one Logstash instance only.  
Any ideas how to achieve that (with a single config)?

Thanks

---

<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 9, 2018, 7:34am UTC](https://discuss.elastic.co/t/execute-pipeline-on-a-specific-host-only/148074/2 "2018-10-09T07:34:40Z")

</div>

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