You can send your logs to New Relic using Amazon Kinesis Data Firehose, a service which can stream data in real time to a variety of destinations, including our platform. Here we explain how to enable this integration.
To forward logs to New Relic using Kinesis Data Firehose, you need a New Relic license key.
When creating an Amazon Kinesis Data Firehose delivery stream, you can select New Relic as the destination:
In the AWS Management Console, go to Amazon Kinesis.
Select Kinesis Data Firehose and click Create delivery stream.
Enter a name for the stream and select your data source.
When selecting the destination, click Third-party partner and then New Relic.
Under HTTP endpoint URL, select New Relic logs - US from the drop-down.
Note: To send your logs to the EU, complete the remaining steps, then proceed to the send logs to EU accounts section.
Paste your license key in the API key field.
Configure and review the remaining settings.
Complete the steps above to create your delivery stream.
Once your stream has been created, navigate to the Kinesis Console and click Delivery streams.
Click on the name of your newly created delivery stream, and select the Configuration tab.
Click the Edit button next to the Destination settings section.
Update the value for HTTP endpoint URL to our Firehose endpoint for EU accounts:https://aws-api.eu.newrelic.com/firehose/v1
Click Save changes to ensure your stream is updated.
Our EU endpoint will be selectable from the AWS Kinesis console soon.
If everything is configured correctly and your data is being collected, you should see data logs in both of these places:
- New Relic Logs UI
- New Relic tools for running NRQL queries. For example, you can execute a query like this:
SELECT * FROM Log
Now that you've enabled Logs, here are some potential next steps:
- Explore your data using the Logs UI.
- Configure your agent to see contextual log data, such as distributed tracing, stack traces, application logs, and more.
- Query your data and create custom dashboards or alerts.
If no data appears after you enable log management, follow the troubleshooting procedures.