Configure log file location

Looking for a way to change the log location for td-agent via the conf file. Default is to log to /var/log/td-agent/td-agent.log` and I’d like to direct them somewhere else in the file system instead.

Yes, you can change it through td-agent’s Environment variable.

First, sudo vi /usr/lib/systemd/system/td-agent.service to get into service config of td-agent.
Then, looking for Environment=TD_AGENT_LOG_FILE=/var/log/td-agent/td-agent.log
You can change its path to wherever you want, and remember to save the changes and restart the td-agent service.