# Filebeat S3 Input - Output Garbled

**URL:** https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924
**Category:** Beats
**Tags:** filebeat
**Created:** [November 7, 2019, 8:53am UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924 "2019-11-07T08:53:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jbws](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jbws](https://discuss.elastic.co/u/jbws)
#### Post date: [November 7, 2019, 8:53am UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924/1 "2019-11-07T08:53:36Z")

</div>

I have configured VPC Flow logs to ship to S3 and then an SQS message queue to notify Filebeat.  
This creates records in ES but they appear like this! Any ideas?

 ![s3-to-es](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2aef9348e9d86a93f3fad8117c7a6e3a382a29be.png)

---

<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 7, 2019, 3:44pm UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924/2 "2019-11-07T15:44:14Z")

</div>

Hi @jbws, thanks for giving this a try! What version of Filebeat are you using?

---

<div class="post-metadata">

### Author: ![jbws](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jbws](https://discuss.elastic.co/u/jbws)
#### Post date: [November 7, 2019, 3:58pm UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924/3 "2019-11-07T15:58:29Z")

</div>

Version is 7.4.2 running in a container.

Config:

```
filebeat.config:
  modules:
    path: ${path.config}/modules.d/*.yml
    reload.enabled: false

filebeat.inputs:
  - type: s3
    queue_url: zzz
    access_key_id: aaa
    secret_access_key: bbb
    visibility_timeout: 1200

cloud.id: yyy
cloud.auth: xxx

output.elasticsearch:

setup.ilm.enabled: false

```

Does the s3 input plugin automatically unzip .gz files?

Thanks

---

<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 7, 2019, 4:41pm UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924/4 "2019-11-07T16:41:36Z")

</div>

Thanks for the info! Yeah it's because VPC logs are gz files. [https://github.com/elastic/beats/pull/13980](https://github.com/elastic/beats/pull/13980) added the support and will be released in 7.5 Filebeat.

---

<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 7, 2019, 4:49pm UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924/5 "2019-11-07T16:49:40Z")

</div>

Also I just want to point out, we have a ticket to add a VPC fileset in Filebeat as well: [https://github.com/elastic/beats/issues/13880](https://github.com/elastic/beats/issues/13880)

---

<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 5, 2019, 4:49pm UTC](https://discuss.elastic.co/t/filebeat-s3-input-output-garbled/206924/6 "2019-12-05T16:49:41Z")

</div>

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