# Logstash S3 Bucket filename in input

**URL:** <https://discuss.elastic.co/t/logstash-s3-bucket-filename-in-input/66916>\
**Category:** Logstash\
**Created:** [November 22, 2016, 9:08pm UTC](https://discuss.elastic.co/t/logstash-s3-bucket-filename-in-input/66916 "2016-11-22T21:08:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMeter\_Dude](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@JMeter\_Dude](https://discuss.elastic.co/u/JMeter_Dude)\
**Post date:** [November 22, 2016, 9:08pm UTC](https://discuss.elastic.co/t/logstash-s3-bucket-filename-in-input/66916/1 "2016-11-22T21:08:05Z")

</div>

Hi.

I want to send the log file name stored inside my S3 bucket as an input to the logstash. If I try to give the path, it fails with error.

If I just give the bucket name it works. If I try to give it as a path it shows an error.

Error: uninitialized constant Aws::Client::Errors  
[2016-11-23T02:36:49,770][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.

Does the S3 input plugin work with filename structure?

if not, then how can I give a log file store in my S3 bucket as an input?

Do I need to create separate buckets for each log file, or is there any other work around?

---

<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 20, 2016, 9:08pm UTC](https://discuss.elastic.co/t/logstash-s3-bucket-filename-in-input/66916/2 "2016-12-20T21:08:16Z")

</div>

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