# Creating single instance of Logstash process

**URL:** https://discuss.elastic.co/t/creating-single-instance-of-logstash-process/60514
**Category:** Logstash
**Created:** [September 14, 2016, 2:37pm UTC](https://discuss.elastic.co/t/creating-single-instance-of-logstash-process/60514 "2016-09-14T14:37:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sumantha\_Kannantha](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sumantha\_Kannantha](https://discuss.elastic.co/u/Sumantha_Kannantha)
#### Post date: [September 14, 2016, 2:37pm UTC](https://discuss.elastic.co/t/creating-single-instance-of-logstash-process/60514/1 "2016-09-14T14:37:09Z")

</div>

We use exec input pug-in to execute external command/script to collect custom monitors. These commands are expensive and want to run it only on one of the Logstash instance. For HA, we want another Logstash instance to be in standby mode for such custom scripts. Any recommendations to achieve this use case?

---

<div class="post-metadata">

### Author: ![Abhinaw\_Sarang](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Abhinaw\_Sarang](https://discuss.elastic.co/u/Abhinaw_Sarang)
#### Post date: [September 15, 2016, 11:05am UTC](https://discuss.elastic.co/t/creating-single-instance-of-logstash-process/60514/2 "2016-09-15T11:05:53Z")

</div>

i have a similar scenario here, in Logstash we are taking JDBC input, executable input and file input.  
If we run 2 logstash instance with all these inputs it will be very expensive. so, we want logstash server to be in active passive mode. Please suggest on how to setup logstash in active passive mode??

i think for JDBC and executable input we can have same logstash.conf and a copy of executable on both server, but for file input(which is output of a running script) how to get it from other server??

---

<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 6, 2017, 4:32am UTC](https://discuss.elastic.co/t/creating-single-instance-of-logstash-process/60514/4 "2017-07-06T04:32:09Z")

</div>


