# High availability with exec command

**URL:** https://discuss.elastic.co/t/high-availability-with-exec-command/275437
**Category:** Logstash
**Created:** [June 9, 2021, 12:43pm UTC](https://discuss.elastic.co/t/high-availability-with-exec-command/275437 "2021-06-09T12:43:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bilanda](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Bilanda](https://discuss.elastic.co/u/Bilanda)
#### Post date: [June 9, 2021, 12:43pm UTC](https://discuss.elastic.co/t/high-availability-with-exec-command/275437/1 "2021-06-09T12:43:10Z")

</div>

Hello !  
I'm currently configuring a highly availabable logstash cluster with two nodes.  
I'm also using the exec plugin with logstash in order to pull new events.  
I was wondering if it was possible to set the exec plugin highly available too ?  
I mean i don't want to execute two times the command run by the exec plugin (on both nodes), it would give me twice the same result, so it would use space unnecessarily. But in an other hand i also need to execute the command even if one node is down.  
Is such a thing possible ?  
Thanks in advance !  
Best regards

---

<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: [June 9, 2021, 4:00pm UTC](https://discuss.elastic.co/t/high-availability-with-exec-command/275437/2 "2021-06-09T16:00:24Z")

</div>

Each logstash instance runs independently. It does not provide support for this. You would have to build the logic into whatever logstash execs.

---

<div class="post-metadata">

### Author: ![Bilanda](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Bilanda](https://discuss.elastic.co/u/Bilanda)
#### Post date: [June 10, 2021, 7:48am UTC](https://discuss.elastic.co/t/high-availability-with-exec-command/275437/3 "2021-06-10T07:48:06Z")

</div>

Thanks for your reply @Badger !

---

<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 8, 2021, 7:48am UTC](https://discuss.elastic.co/t/high-availability-with-exec-command/275437/4 "2021-07-08T07:48:45Z")

</div>

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