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

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 }
}
}

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