I am using logstash s3 output plugin to upoad files on ganesha s3 buckets.
I must include an underscore in the bucket name to make the logstash S3 output plugin work.
If there is no underscore, I get this error:
:error=>"Logstash must have the privileges to write to root bucket applogs, check your credentials or your permissions."
This error is misleading becasue I know I can access (read, write) the buckets using s3 cli.
My S3 output configuration is:
s3 {
access_key_id => "XXXXXXXX"
secret_access_key => "XXXXXXXXX"
region => "us-east-1"
endpoint => "https://s3-ganesha.local"
bucket => "applogs"
additional_settings => {
"force_path_style" => true
}
}
I started logstash in debug mode; but, could not get any pointers.
I am using logstash logstash:5.6.9 docker image
The same above configuration will work if I change the bucket name to "app_logs" instead