# A lot of empty messages with AWS SQS

**URL:** <https://discuss.elastic.co/t/a-lot-of-empty-messages-with-aws-sqs/169157>\
**Category:** Logstash\
**Created:** [February 20, 2019, 8:12am UTC](https://discuss.elastic.co/t/a-lot-of-empty-messages-with-aws-sqs/169157 "2019-02-20T08:12:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ep4sh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ep4sh/32/40099_2.png) [@ep4sh](https://discuss.elastic.co/u/ep4sh)\
**Post date:** [February 20, 2019, 8:12am UTC](https://discuss.elastic.co/t/a-lot-of-empty-messages-with-aws-sqs/169157/1 "2019-02-20T08:12:53Z")

</div>

I have a lot of empty messages on my Logstash indexers, I am using AWS SQS input and my attribute on SQS tier (i think it is enough time to process)

> ReceiveMessageWaitTimeSeconds == 10 sec.

Is it a responsibility of

> polling\_frequency = 3

parameter?

---

<div class="post-metadata">

**Author:** ![ep4sh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ep4sh/32/40099_2.png) [@ep4sh](https://discuss.elastic.co/u/ep4sh)\
**Post date:** [February 21, 2019, 6:23am UTC](https://discuss.elastic.co/t/a-lot-of-empty-messages-with-aws-sqs/169157/2 "2019-02-21T06:23:02Z")

</div>

Founded in _[https://github.com/logstash-plugins/logstash-input-sqs](https://github.com/logstash-plugins/logstash-input-sqs)_  
Look for **sqs.rb**

```
  def polling_options
    { 
      :max_number_of_messages => MAX_MESSAGES_TO_FETCH,
      :attribute_names => SQS_ATTRIBUTES,
      :wait_time_seconds => @polling_frequency
    }
  end

```

**polling\_frequency** changes **wait\_time\_seconds** for AWS SQS **short / long polling** , yeah

---

<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:** [March 21, 2019, 6:23am UTC](https://discuss.elastic.co/t/a-lot-of-empty-messages-with-aws-sqs/169157/3 "2019-03-21T06:23:17Z")

</div>

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