# What is polling\_frequency in sqs plugin?

**URL:** <https://discuss.elastic.co/t/what-is-polling-frequency-in-sqs-plugin/34768>\
**Category:** Logstash\
**Created:** [November 17, 2015, 8:39am UTC](https://discuss.elastic.co/t/what-is-polling-frequency-in-sqs-plugin/34768 "2015-11-17T08:39:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhaval.b](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dhaval.b](https://discuss.elastic.co/u/dhaval.b)\
**Post date:** [November 17, 2015, 8:39am UTC](https://discuss.elastic.co/t/what-is-polling-frequency-in-sqs-plugin/34768/1 "2015-11-17T08:39:16Z")

</div>

How polling\_frequency parameter works in logstash sqs plugin. default time for this parameter is 20 seconds. Does it mean that logstash will get 10 messages from sqs, process it and wait for 20 seconds before sending another request? Can somebody help me to understand how exactly this works?

Thanks,  
DB

---

<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:** [November 17, 2015, 8:57am UTC](https://discuss.elastic.co/t/what-is-polling-frequency-in-sqs-plugin/34768/2 "2015-11-17T08:57:16Z")

</div>

It means it will connect every 20 seconds at a minimum, collect any messages waiting and then process them.  
If you have enough messages that it takes longer than 20 seconds to process them, you will need to wait for 20 seconds after that batch have processed before the next set are processed.

---

<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, 5:22am UTC](https://discuss.elastic.co/t/what-is-polling-frequency-in-sqs-plugin/34768/3 "2017-07-06T05:22:36Z")

</div>


