Log forwarding doesn't work Infrastructure agent

hi I’m using infrastructure agent to forward logs to NR;
with metrics all ok, but logs didn’t appear on NR UI
I did everything from this man https://docs.newrelic.com/docs/logs/enable-log-management-new-relic/enable-log-monitoring-new-relic/forward-your-logs-using-infrastructure-agent
yaml syntax ok, checked on yaml lint;
OS Linux RedHat 7.8
content of logs.yml below:
logs:

  • name: testfile
    file: /var/log/test.log
  • name: testweb2
    file: /var/log/httpd/access_log

got errors when run sudo systemctl status newrelic-infra -l

newrelic-infra-service[2487]: time=“2020-09-24T21:31:28Z” level=error msg=“Error occurred while handling the process” component=integrations.Supervisor error=“signal: aborted” process=log-forwarder

any ideas?

problem was with selinux

Selinux block /var/db/newrelic-infra/newrelic-integrations/logging/fluent-bit

1 Like