# How to run logstash conf continuously

**URL:** https://discuss.elastic.co/t/how-to-run-logstash-conf-continuously/87443
**Category:** Logstash
**Created:** [May 29, 2017, 12:11pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-conf-continuously/87443 "2017-05-29T12:11:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kabali12345](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kabali12345](https://discuss.elastic.co/u/kabali12345)
#### Post date: [May 29, 2017, 12:11pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-conf-continuously/87443/1 "2017-05-29T12:11:51Z")

</div>

Hi....all  
Here i am trying to push elasticsearch data into RabbitMq  
here is my conf

```auto
input {
  elasticsearch {
    hosts => "192.168.1.23:9200"
    index => "task-*"
    query => '{ "query":{ "match_all": {} }, "sort": ["_doc"] }'
    size => 1000
    scroll => "5m"
    type => "ela"
  }
}
output{
      rabbitmq {
          key => "alerts_elk2"
          exchange => "ncoms_elk2"
          exchange_type => "direct"
          user => "admin"
          password => "rabbit@123"
          host => "192.168.1.23"
          port => 5672
          durable => true
          persistent => true
          heartbeat => "5"
      }
}

```

challenge is  
when i run above conf file its running properly for once and then after this process is getting terminated  
but i want that process not to terminate  
is there any option like **schedule** to run that process continuously?

Thank you.

---

<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: [May 29, 2017, 6:57pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-conf-continuously/87443/3 "2017-05-29T18:57:51Z")

</div>

> is there any option like schedule to run that process continuously?

I don't believe there is, no.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 30, 2017, 1:01am UTC](https://discuss.elastic.co/t/how-to-run-logstash-conf-continuously/87443/4 "2017-05-30T01:01:48Z")

</div>

There isn't a way to do this at the moment.

Please follow [https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/65](https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/65) though!

---

<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: [June 27, 2017, 1:01am UTC](https://discuss.elastic.co/t/how-to-run-logstash-conf-continuously/87443/5 "2017-06-27T01:01:55Z")

</div>

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