Log Attribute options overwrites for newrelic-infra logger agent

Hello!
I’m configuring logger with newrelic-infra agent. I’ve faced with bug:
I have two Logs config files:
/etc/newrelic-infra/logging.d/api.yml

logs:
  - name: log-files-in-folder
    file: /opt/logs/api/*.log.json
    max_line_kb: 1024
    attributes:
      labels.environment: prod
      labels.app_name: api
      labels.host: prod-api02

/etc/newrelic-infra/logging.d/signalr.yml

logs:
  - name: log-files-in-folder
    file: /opt/logs/signalr/*.log.json
    max_line_kb: 1024
    attributes:
      labels.environment: prod
      labels.app_name: signalr
      labels.host: prod-api02

When I get logs I see labels.app_name: sig for both cases.
It looks like the second rule overwrite the first rule and labels.app_name word size depends on first rule, e.g. if labels.app_name: api-test and labels.app_name: signalr then I get “signalrt” in newrelic logs.

newrelic-infra -version
New Relic Infrastructure Agent version: 1.12.7, GoVersion: go1.14.4, GitCommit: 54aec01b5e7defb27541f02f16735a259df40ce7

Hi @Steven47 - Could you try changing the name: field for one of your configurations so that they’re distinct in each file? That should resolve the issue.

The infrastructure agent turns that value into a “tag” in a fluent-bit configuration it generates and that tag is used to decide which attributes get added to which logs. But when the “name” field is the same for multiple inputs it can issues like this.

Could you give that a try and let us know how it goes?