I’m evaluating new relic and trying to get my application logs digested, however to no avail. I have set up a sidecar Docker container with shared volume between the app and the NR container. I have configured Dockerfile to copy my general configuration to /etc/newrelic-infra.yml and the logging configuration to /etc/newrelic-infra/logging.d/logging.yml
The logging configuration is:
logs: - name: [app name] file: /app/logs/*.log attributes: env: development
In New Relic UI I can see that the infrastructure agent is online and also host metrics (like load etc) are being sent.
The application logs are visible in the New Relic infrastructure agent Docker container. I can tail -f it and see new entries being added.
I have double- and triple-checked the YAML file and whitespacing.
When I run newrelic-infra-ctl as suggested by documentation, I get no mentions of the file logging. It leaves detailed logging on for a while, but when new entries are added to the log file, nothing is mentioned in the detailed logs, as if it wasn’t turned on.
The logging agent throws following errors to the console:
time=“2022-09-09T06:13:43Z” level=error msg=“can’t map devices” component=StorageSampler error=“open /host/etc/mtab: no such file or directory” mountsFilePath=/host/etc/mtab
time=“2022-09-09T06:13:43Z” level=error msg=“can’t get partitions” component=StorageSampler error=“failed to get mounted devices/partitions”
From what I’m able to Google/SO these errors seem to be related to infrastructure logging, but not completely sure.
Any pointers on where to continue digging?