Hi,
We are using logstash to route logs to different places like different elasticsearch clusters. Now we want to store logs in s3 bucket as well. We are using logstash-output-s3. logstash-output-s3 plugin could store all the logs in s3 bucket. but we want to create different buckets based on fields. Here is our logstash configuration
output {
s3{
region => "us-east-1"
bucket => "mycompany-qa-application-logs"
prefix => "app/%{[attribute][APPLICATION]}-%{[attribute][ENVIRONMENT]}-%{[logType]}-logs"
size_file => 2146304
time_file => 5
canned_acl => "private"
}
}
it should create app-qa-error-logs. but it created %{[attribute][APPLICATION]}-%{[attribute][ENVIRONMENT]}-%{[logType]}-logs under app directory.
Any help will be much appreciated.
Cheers
Ferdous Shibly