# Sleep condition is not working in logstash

**URL:** <https://discuss.elastic.co/t/sleep-condition-is-not-working-in-logstash/60494>\
**Category:** Logstash\
**Created:** [September 14, 2016, 11:33am UTC](https://discuss.elastic.co/t/sleep-condition-is-not-working-in-logstash/60494 "2016-09-14T11:33:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [September 14, 2016, 11:33am UTC](https://discuss.elastic.co/t/sleep-condition-is-not-working-in-logstash/60494/1 "2016-09-14T11:33:46Z")

</div>

HI Team,  
I want to process request and response should delay the time between this two files. So i have implemented the sleep concept. In early it was work for me and now try to implement that in logstash it through some error in logstash,

CircuitBreaker::rescuing exceptions {:name=\>"Beats input", :exception=\>LogStash::Inputs::Beats::InsertingToQueueTakeTooLong, :level=\>:warn}  
Beats input: The circuit breaker has detected a slowdown or stall in the pipeline, the input is closing the current connection and rejecting new connection until the pipeline recover. {:exception=\>LogStash::Inputs::BeatsSupport::CircuitBreaker::HalfOpenBreaker, :level=\>:warn}

sleep{  
time =\> 15  
}

---

<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:38am UTC](https://discuss.elastic.co/t/sleep-condition-is-not-working-in-logstash/60494/2 "2017-07-06T04:38:34Z")

</div>


