# Bucket option must not contain a forward-slash (/)

**URL:** <https://discuss.elastic.co/t/bucket-option-must-not-contain-a-forward-slash/185035>\
**Category:** Logstash\
**Created:** [June 10, 2019, 5:16pm UTC](https://discuss.elastic.co/t/bucket-option-must-not-contain-a-forward-slash/185035 "2019-06-10T17:16:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manishvsaraf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manishvsaraf/32/47820_2.png) [@Manishvsaraf](https://discuss.elastic.co/u/Manishvsaraf)\
**Post date:** [June 10, 2019, 5:16pm UTC](https://discuss.elastic.co/t/bucket-option-must-not-contain-a-forward-slash/185035/1 "2019-06-10T17:16:45Z")

</div>

My logstash.conf is as below, know that something wrong with bucket path. but don't how to define.

Every hour I am receiving log files at S3 bucket : abcd/logs/aa.com/r/year=2019/month=06/day=10/hour=16

Next hour location it will be  
abcd/logs/aa.com/r/year=2019/month=06/day=10/hour=17

Could you please assist me to define S3 input.

input {  
s3 {  
access\_key\_id =\> "aabb"  
bucket =\> "abcd/logs/aa.com/r/year=2019/month=06/day=10/hour=16"  
region =\> "ppoopp"  
secret\_access\_key =\> "qqwwee"  
prefix =\> "/"  
type =\> "s3"  
#add\_field =\> { source =\> gzfiles }  
}  
}

---

<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:** [July 8, 2019, 5:17pm UTC](https://discuss.elastic.co/t/bucket-option-must-not-contain-a-forward-slash/185035/2 "2019-07-08T17:17:01Z")

</div>

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