Discover the top benefits of observability
See the research

Netlify is a web developer platform that makes your applications more performant by pre-rendering static content and decoupling your services. It’s a powerful workflow that improves developer productivity, but you can’t access your traffic logs through the Netlify UI, and your function logs are only available for up to 7 days. That means you need a monitoring tool like New Relic One to store and analyze your data.

Today, we are announcing that you can capture Netlify web traffic and serverless function logs in New Relic by connecting to Netlify Log Drains. With New Relic, you can monitor, visualize, and set alerts based on web traffic and function performance data, allowing you to optimize your Netlify applications and fix issues proactively.

  • User traffic monitoring: Identify traffic from bots and bad actors, which can help your security and compliance engineers proactively defend your sites.
  • Access and analyze your Netlify traffic logs: Traffic logs are only accessible through log drains, not the Netlify UI. Through New Relic you can analyze things like abnormalities, rate changes, or success rate percentage on your Netlify traffic logs.
  • Long-term log retention: For Netlify Enterprise accounts, the Netlify console only provides up to seven days of storage for function logs. With New Relic, you get long-term cold storage for your Netlify log data, and the ability to make month-over-month comparisons.
  • User agent analytics: Analyze your user agents for performance issues.
  • Session tracking: Gain insight into user activity and journeys across your sites.

Let’s take a more detailed look at how ingesting your Netlify logs in New Relic helps you monitor your Netlify applications.

Why monitor Netlify with New Relic One?

Our built-in log manager automatically parses out key attributes from your logs, which you can then use to search, filter, analyze, and generate metrics. New Relic uses your parsed log data to automatically populate a Netlify dashboard that visualizes key telemetry from your environment, giving you a high-level overview of your Netlify apps.

Once you connect New Relic One to Netlify Log Drains, you’ll be able to do the following:

  • Export site traffic and function logs to New Relic to support deep analysis, alerting, and long-term storage.
  • Use flexible configuration so you can forward Netlify traffic logs, function logs, or both.
  • Use optional tags to organize and filter logs for different sites and environments.
  • Set up alerts in New Relic One on your imported Netlify data.
  • Visualize your log drain data on a dashboard immediately by installing the Netlify quickstart.

The Traffic Logs dashboard in the Netlify Logs Quickstart.

How to set up Netlify Log Drains with New Relic One

To use Netlify Log Drains, your team must be on an Enterprise Netlify Plan.

Follow these steps to configure your site’s log drain for New Relic:

  1. For your selected site, go to Site settings > Log Drains, and select Enable a log drain.
  2. Select New Relic as the Log drain service.
  3. Select the Log type. You can drain your site’s traffic logs, function logs, or both.
  4. Under Service settings, select the Region that applies to your New Relic account.
  5. Enter a License API key, also called INGEST-LICENSE, for your New Relic account. Verify that you’re entering your License API key and not your License API key ID or user key.
  6. Optional: To add a tag for your log drain, go to Tags and enter the key and value. Then select Add tag. Any tags you add become query parameters in log drain requests to New Relic.

Example tags for New Relic:

Key

Value

Tag description

environment

production

environment type

service

mysubdomain

name of the application or service generating the log events

The Functions Logs dashboard in the Netlify Logs Quickstart.