Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为不在默认 /etc/td-agent/td-agent.conf 位置的 fluentd 配置文件启动 td-agent 服务?我试过了
td-agent -c /home/charith/Documents/fdConfig/configuration.conf
但不确定如何在日志文件发生更改后重新启动服务!
配置文件的默认位置是etc/td-agent/td-agent.conf. 通过使用sudo systemctl restart td-agent将在默认位置重新启动文件。如果td-agent -c configuration.conf仅通过重新启动方式启动,则首先按 ctrl+c 停止,然后使用相同的命令再次重新启动。
etc/td-agent/td-agent.conf
sudo systemctl restart td-agent
td-agent -c configuration.conf