Unable to forward logs using the Infrastructure agent

I was able to set up the infrastructure agent successfully, as well as other integrations, except for LOGS INTEGRATION.

Host OS: Amazon Linux 2
Installer: curl -Ls https://raw.githubusercontent.com/newrelic/newrelic-cli/master/scripts/install.sh
infrastructure-agent-installer package: newrelic-infra-1.19.3-1.amazonlinux-2.x86_64 already installed and latest version.

The only error I see in the /root/.newrelic/newrelic-cli.log is:

Log installation completed
{“level”:“debug”,“msg”:“Checking for data in New Relic (this may take a few minutes)…”,“time”:“2021-07-27T17:12:44Z”}
{“level”:“debug”,“msg”:" Checking for data in New Relic (this may take a few minutes)…failed.",“time”:“2021-07-27T17:17:44Z”}
{“error”:“encountered an error while validating receipt of data for logs-integration: reached max validation attempts”,“guid”:"",“level”:“debug”,“msg”:“recipe event”,“recipe_name”:“logs-integration”,“status”:“FAILED”,“statusCount”:7,“tasks”:null,“time”:“2021-07-27T17:17:44Z”,“validationDurationMilliseconds”:300000}
{“level”:“debug”,“msg”:“completed”,“time”:“2021-07-27T17:17:46Z”,“timestamp”:1627406266}
{“hasCanceledPacks”:false,“hasCanceledRecipes”:false,“hasFailedPacks”:false,“hasFailedRecipes”:true,“hasInstalledPacks”:false,“hasInstalledRecipes”:true,“hasSkippedRecipes”:true,“level”:“debug”,“msg”:“final installation statuses updated”,“time”:“2021-07-27T17:17:46Z”}
{“level”:“fatal”,“msg”:"We encountered an error during the installation: encountered an error while validating receipt of data for logs-integration: reached max validation attempts.

Love to get your help!

If the infra agent installed fine, then use the docs here to install logging rather than using the CLI:

1 Like