使用fluentd进行Rancher群集日志记录';行不通

使用fluentd进行Rancher群集日志记录';行不通,fluentd,rancher,Fluentd,Rancher,你能帮我吗 我已将rancher群集记录器设置为fluentd。 (工具->日志->选择fluentd并键入endpoint等,然后测试并保存) fluentd将日志存储到minio(s3兼容的对象存储) 之后,只向minio发送“已启用群集日志记录”的测试日志或fluentd自己的日志(如fluentd worker started等) rancher提供的k8s群集上的任何应用程序日志都未存储在minio上 Rancher版本为2.3.3,如果没有fluentd端点,则不会设置任何其他设置值

你能帮我吗

我已将rancher群集记录器设置为fluentd。 (工具->日志->选择fluentd并键入endpoint等,然后测试并保存) fluentd将日志存储到minio(s3兼容的对象存储)

之后,只向minio发送“已启用群集日志记录”的测试日志或fluentd自己的日志(如fluentd worker started等)

rancher提供的k8s群集上的任何应用程序日志都未存储在minio上

Rancher版本为2.3.3,如果没有fluentd端点,则不会设置任何其他设置值。 下面是我的fluentd配置

<match **>
  @type s3
  @log_level info
  aws_key_id accesskey   
  aws_sec_key secretkey  
  s3_bucket logs   
  s3_endpoint https://myminio    
  s3_region us-east-1     
  path logs/              
  force_path_style true   
  time_slice_format %Y%m%d%H%M  
  store_as json

  <buffer time>
    @type file
    path /var/log/td-agent/s3
    timekey 1m            
    timekey_wait 10s      
    timekey_use_utc true  
    chunk_limit_size 256m 
  </buffer>

  <format>
    @type json
  </format>
</match>

<source>
  @type forward
  @id input_forward
</source>

@s3型
@日志级别信息
aws\u密钥\u id访问密钥
aws_secu_密钥secretkey
s3_斗式原木
s3_端点https://myminio    
s3_地区美国东部1
路径日志/
强制路径样式为true
时间片格式%Y%m%d%H%m
将_存储为json
@类型文件
路径/var/log/td-agent/s3
时间键1m
时间键\u等待10秒
timekey\u use\u utc true
区块大小限制为256m
@类型json
@打字前进
@id输入\u转发

我无法识别docker根目录的群集选项。它被设置为/data01/docker(非默认值:/var/lib/docker)。这个设置有什么问题吗?你找到解决办法告诉rancher新码头工人的位置了吗?我目前正在考虑手动将绑定装载卷添加到新的docker位置。我没有识别docker根目录的群集选项。它被设置为/data01/docker(非默认值:/var/lib/docker)。这个设置有什么问题吗?你找到解决办法告诉rancher新码头工人的位置了吗?我目前正在考虑手动将绑定装载卷添加到新的docker位置。