Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon s3 fluentd s3输出插件配置_Amazon S3_Fluentd - Fatal编程技术网

Amazon s3 fluentd s3输出插件配置

Amazon s3 fluentd s3输出插件配置,amazon-s3,fluentd,Amazon S3,Fluentd,在过去的两天里,我一直在尝试获取fluentd的s3,我看不到s3上的日志 这是我当前的配置: <match web.all> type s3 aws_key_id ...... as_sec_key ...... s3_bucket ...... path logs/ buffer_path /var/log/td-agent/s3 s3_region ap-southe

在过去的两天里,我一直在尝试获取fluentd的s3,我看不到s3上的日志

这是我当前的配置:

<match web.all>
        type s3
        aws_key_id ......
        as_sec_key ......
        s3_bucket ......
        path logs/
        buffer_path /var/log/td-agent/s3
        s3_region ap-southeast-1
        time_slice_format %Y%m%d%H%M
        time_slice_wait 1M
        utc

    buffer_chunk_limit 256m
</match>

s3型
aws\u密钥\u id。。。。。。
作为备用钥匙。。。。。。
s3_桶。。。。。。
路径日志/
缓冲区路径/var/log/td-agent/s3
s3_地区ap-东南-1
时间片格式%Y%m%d%H%m
时间片等待1米
utc
缓冲区块限制256m
如果我尝试匹配“web.all”并将其存储到一个文件中,它会正常工作

<match web.all>
  type file
  path /var/log/td-agent/web-all.log
</match>

类型文件
path/var/log/td-agent/web-all.log
由于某些原因,并且不知道如何调试,我无法将其放在s3上。关于如何进行调试,有什么指导吗

编辑

2015-10-18 22:46:51 -0400 [error]: unexpected error error_class=RuntimeError error=#<RuntimeError: can't call S3 API. Please check your aws_key_id / aws_sec_key or s3_region configuration. error = #<AWS::S3::Errors::InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.>>

2015-10-18 22:46:51-0400[错误]:意外错误\u类=运行时错误=#感谢您试用Fluentd。你能粘贴你的Fluentd错误日志吗?如果您使用的是td-agent,那么它应该位于/var/log/td-agent/td-agent.log中。如果您使用的是Fluentd,那么它应该位于您指定存储日志的任何位置。