# How to get JSON data from AWS s3 bucket

**URL:** <https://discuss.elastic.co/t/how-to-get-json-data-from-aws-s3-bucket/235386>\
**Category:** Logstash\
**Tags:** winlogbeat\
**Created:** [June 2, 2020, 5:40pm UTC](https://discuss.elastic.co/t/how-to-get-json-data-from-aws-s3-bucket/235386 "2020-06-02T17:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 3, 2020, 12:56pm UTC](https://discuss.elastic.co/t/how-to-get-json-data-from-aws-s3-bucket/235386/4 "2020-06-03T12:56:24Z")

</div>

If you want to consume the entire file as a single event then that is easy, you can just use a pattern that never matches. If your file contains multiple JSON objects then if it is pretty printed you can use ^} to find the end of the object. If it is not pretty printed you may not be able to find a pattern that works.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-get-json-data-from-aws-s3-bucket/235386)._
