Need help with log forwarding

I am using log-forwarding using the newrelic-infra agent. I am sending all my logs for my application to new relic. My config looks something like this -

  • name: testLog
    file: logpath/.log
    logtype: tesstlogs

Is there any way i can assign logtype or any attributes dynamically in the config file?
I want log files belonging to different services to be distinguishable on the dashboard using these attributes since all the files are in the same location.


Hi @rishabh2

You can add custom attributes as key-value pairs that can be used to send additional data with the logs which you can then query. The attributes parameter can be added to any log source. Adding a helpful document below for your reference. Hope it helps!