# S3 input plugin

**URL:** <https://discuss.elastic.co/t/s3-input-plugin/267869>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 19, 2021, 10:50pm UTC](https://discuss.elastic.co/t/s3-input-plugin/267869 "2021-03-19T22:50:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paano](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@paano](https://discuss.elastic.co/u/paano)\
**Post date:** [March 19, 2021, 10:50pm UTC](https://discuss.elastic.co/t/s3-input-plugin/267869/1 "2021-03-19T22:50:25Z")

</div>

Reading the S3 plugin [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html#plugins-inputs-s3](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html#plugins-inputs-s3) there is one line

Each line from each file generates an event. Files ending in `.gz` are handled as gzip’ed files.

So, if the file is tgz, or gz, then wil the S3 plugin unzip, and then read each line of the file.

---

<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:** [March 22, 2021, 10:00am UTC](https://discuss.elastic.co/t/s3-input-plugin/267869/2 "2021-03-22T10:00:39Z")

</div>

Hello! Yes, the s3 input in Filebeat should unzip the file and read each line of the file. Each line in the log file will be stored in one event.

---

<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:** [April 19, 2021, 12:01pm UTC](https://discuss.elastic.co/t/s3-input-plugin/267869/3 "2021-04-19T12:01:01Z")

</div>

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