fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

How can I set the credential info in td-agent-bit to AWS S3

Open tr2vil opened this issue 5 years ago • 2 comments

Bug Report

Describe the bug

I want to send logs to AWS S3. My td-agent-bit OUTPUT test config is like this

[OUTPUT] Name s3 Match * bucket *** region ap-northeast-2 store_dir nginx/access/ s3_key_format /%Y%m%d%H%M%S_$UUID.gz total_file_size 1M upload_timeout 1m s3_key_format_tag_delimiters .-_

I've configured about td-agent before. In td-agent s3 config has s3 access/secret config like this

<match ec-cloud.crond.*> @type s3 aws_key_id *** aws_sec_key *** s3_bucket {bucket_name} path logs/nginx/%Y/%m/%d/

After search about td-agent-bit, I've set aws default credential like this $ cat ~/.aws/credentials [default] aws_access_key_id=*** aws_secret_access_key=***

But it is not work.

In td-agent-bit, How can I set aws access/secret key like td-agent ?

Your Environment

  • Version used: td-agent-bit 1.7.4
  • Configuration:
  • Environment name and version (e.g. Kubernetes? What version?): baremetal
  • Server type and version: Linux
  • Operating System and version: CentOS Linux release 7.9.2009 (Core)
  • Filters and plugins:

Additional context

tr2vil avatar Jul 06 '21 02:07 tr2vil

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 06 '21 01:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 12 '21 01:08 github-actions[bot]