# How to configure s3 input to scale?

**URL:** https://discuss.elastic.co/t/how-to-configure-s3-input-to-scale/209360
**Category:** Beats
**Tags:** filebeat
**Created:** [November 25, 2019, 6:40pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-to-scale/209360 "2019-11-25T18:40:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ronin](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ronin](https://discuss.elastic.co/u/Ronin)
#### Post date: [November 25, 2019, 6:40pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-to-scale/209360/1 "2019-11-25T18:40:36Z")

</div>

We have 3 filebeat instances running with a s3/sqs input. From what I can tell each instance will only pull 10 sqs messages at one time. We are not bottlenecked on cpu or ram, so what do I need to configure for it to process more simultaneously?

My elastic output is:

```auto
output.elasticsearch:
  compression_level: 5
  worker: 30
  bulk_max_size: 500

```

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [November 26, 2019, 12:21pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-to-scale/209360/2 "2019-11-26T12:21:38Z")

</div>

You can scale Filebeat horizontally by starting multiple instances of them. See more: [https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-s3.html#\_parallel\_processing](https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-s3.html#_parallel_processing)

---

<div class="post-metadata">

### Author: ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)
#### Post date: [November 26, 2019, 2:45pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-to-scale/209360/3 "2019-11-26T14:45:40Z")

</div>

Hi @Ronin the limit of 10 is because the AWS API call we are making `ReceiveMessage` to SQS. There is a parameter in this API limiting the maximum number of messages to return and the default is 10 in Filebeat S3 input.

In AWS API, this value is default to 1 and max to 10 so we can't go higher than 10 is my understanding:  
`The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.`

Please see [https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API\_ReceiveMessage.html](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html) for more info. Thanks!

---

<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: [December 24, 2019, 2:45pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-to-scale/209360/4 "2019-12-24T14:45:55Z")

</div>

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