This guide is intended for help troubleshooting logs from the configuration and data collection end. For example: missing logs and/or log messages, unparsed logs, config questions etc. If the issue resides in the UI then there is a separate troubleshooting guide.
Before reading further:
- Ensure that you have installed and configured a compatible Log Forwarder. You can find a list of the different log forwarding options and how to install New Relic’s various plugins in our documentation here. Troubleshooting for individual forwarders can be found below.
- Logs in Context is different from Log Forwarding. Setting up Logs in Context for your application simply adjusts your application’s logger to format logs as JSON with New Relic’s logging metadata. This metadata establishes context for your application logs and other features of your New Relic APM agent. Check out our Configure logs in context with APM agents doc for more detailed information.
- Ensure you’re using a valid Insert API Key
- Make sure you’ve followed all of the steps mentioned in our public docs: AWS FireLens plugin for log forwarding
- There are a number of useful config examples for firelens in our github repo here as well: GitHub - aws-samples/amazon-ecs-firelens-examples: Sample logging architectures for FireLens on Amazon ECS and AWS Fargate.
- Check for errors using the following NRQL query:
- For example: SELECT * FROM NrIntegrationError SINCE 24 hours AGO
- If you’re in the EU, make sure you have the correct logging endpoint set. You will need to add an additional property to the
optionsfield of the
logConfigurationobject in your application containers:
- “endpoint”: “https://log-api.eu.newrelic.com/log/v1”