fluent: Save Pod logs to S3

3/25/2020

I'm new with Fluentd. I'm using fluentd-s3 plugin to write logs in a bucket. I want to store logs for each pod separately. Right now this is how my configuration looks like.

<match pattern>
 @type s3
 aws_key_id YOUR_AWS_KEY_ID
 aws_sec_key YOUR_AWS_SECRET_KEY
 s3_bucket YOUR_S3_BUCKET_NAME
 s3_region ap-northeast-1
 path logs/
 s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}

</match> 

I want to know if I can save logs for each pod separately in S3.

-- Ahmad.Masood
amazon-s3
fluent
kubernetes
kubernetes-helm
logging

0 Answers