Add extra metadata to logs

Looking for a way to add extra metadata to logs written to /var/log/td-agent/td-agent.log but I’m not having any luck by reading the docs. I want to have some identifier included in there so I can search splunk based on the identifier and see logs just from that server. Any help would be greatly appreciated!