# Logstash exec input on cluster

**URL:** https://discuss.elastic.co/t/logstash-exec-input-on-cluster/201935
**Category:** Logstash
**Created:** [October 2, 2019, 10:02am UTC](https://discuss.elastic.co/t/logstash-exec-input-on-cluster/201935 "2019-10-02T10:02:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vijayakumar\_Kannan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakumar_kannan/32/34873_2.png) [@Vijayakumar\_Kannan](https://discuss.elastic.co/u/Vijayakumar_Kannan)
#### Post date: [October 2, 2019, 10:02am UTC](https://discuss.elastic.co/t/logstash-exec-input-on-cluster/201935/1 "2019-10-02T10:02:18Z")

</div>

Hi,

I want to run command "ssh ip -c ls" every 1 hour in logstash exec input plugin. If i have 3 logstash nodes in cluster every logstash nodes will execute this ? if yes how do i set only one logstash node execute the command at a time.

Example: 3 logstash nodes has same execute command and same schedule but any one server should execute.

---

<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 30, 2019, 10:04am UTC](https://discuss.elastic.co/t/logstash-exec-input-on-cluster/201935/2 "2019-10-30T10:04:35Z")

</div>

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