Can not add pm2 logs for logging in Infra agent

Infrastructure Question Template

Trying to add pm2 (nodejs) logs using infra agent on Linux (ubuntu 20.04) for location /home/ubuntu/.pm2/logs/*.log

I do not use nodejs NR agent because it needs app restart. And it is not applicable for us. By this reason i have checked NR infra agent which does not need the node apps restart.

Please also include all pertinent information;

  • Ubuntu 20.04
  • New Relic Infrastructure Agent version: 1.18.1, GoVersion: go1.14.4, GitCommit: 2efc2086e60c5cc55ada8035b5d52b789fdb1196
  • FATAL We encountered an error during the installation: encountered an error while validating receipt of data for logs-integration: reached max validation attempts.
  • AWS

Helpful Resources

Please run New Relic Diagnostics On your host and share the results of that here.

Issues Found

Failure - Base/Log/Copy
Diagnostics CLI cannot collect New Relic log files from the provided path():stat : no such file or directory
If you are working with a support ticket, manually provide your New Relic log file for further troubleshooting
User opted out when Diagnostics CLI asked if it can collect this file that may contain secure information.
If you are working with a support ticket, manually provide your New Relic log file for further troubleshooting

See https://docs.newrelic.com/docs/agents/manage-apm-agents/troubleshooting/generate-new-relic-agent-logs-troubleshooting for more information.

Warning - Java/AppServer/WebSphere
We suspect this is a WebSphere environment but we’re unable to determine the version. Supported status is unknown.
See https://docs.newrelic.com/docs/agents/java-agent/additional-installation/ibm-websphere-application-server for more information.

Error - DotNetCore/Env/Versions
Unable to complete this health check because we ran into some unexpected errors when attempting to collect this application’s .NET Core SDK version:
Unable to run ‘dotnet --version’:
%w
exec: “dotnet”: executable file not found in $PATH

Warning - Infra/Log/LevelCheck
Infrastructure logging level not set to verbose. If troubleshooting an Infrastructure issue, please set verbose: 1 in newrelic-infra.yml.
See https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/troubleshooting/generate-logs-troubleshooting-infrastructure for more information.

Warning - Java/Env/Version
Java not found in PATH

For better results, run Diagnostics CLI with the ‘suites’ option to target a New Relic product. To learn how to use this option, run: ‘nrdiag/linux/nrdiag_x64 -h suites’

Hey @kostyantyn,

Thanks for reaching out.

Per our documentation the Infra Log Forwarder is compatible with Ubuntu 16.04.x and Ubuntu 18.04.x . It looks like you are running Ubuntu 20.04.

That being said, you may use one of the other log forwarding options we have available, e.g. Fluentd, Logstash:

Regards,

Thanks.
But is very strange that on Ubuntu 20.04 it works for Linux logs and even with docker container logs but, does not work with pm2 logs.

Tried on Ubuntu 18.04 on several hosts in AWS and got the same issue. So it is not one server problem. It is general behaviour.

FATAL We encountered an error during the installation: encountered an error while validating receipt of data for logs-integration: reached max validation attempts: no results returned. If this problem persists please visit the documentation and support page for additional help here: https://one.newrelic.com/-/06vjAeZLKjP

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

I do not know how it can be but 2 of 3 items in your infra agent install do not work. I am implying logs integration and node agent install. I can not belive how it can be that so many problems related with just one small part of your big product. And it still looks very raw and buggy.