错误信息
2018-12-06 19:12:05 +0800 [warn]: secondary type should be same with primary one primary=“Fluent::TreasureDataLogOutput” secondary=“Fluent::Plugin::FileOutput”
2018-12-06 19:12:05 +0800 [error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error=“out_file: /var/log/fluent/access.20181206_**.log
is not writable”
原因
td-agent 会默认创建td-agent用户,需要对这个日志目录设置读写权限
##修复
chown td-agent:td-agent /var/ -R