Get weekly updates about the latest features and releases from the people who built them. Join the Nerdlog discussion every Thursday at 12 p.m. PT on Twitch or follow along in What's New.

If you're not a New Relic customer, sign up for your free account today.

Logs are one of the four fundamental components of observability (along with metrics, events, and traces) and  include the most detail about your application’s function. In this week’s episode, Senior Manager, Product Management Michael Neville-O’Neill, and Software Engineer Josep Subirats joined the Nerdlog to discuss how they are working to make it easier to send logs to New Relic One. 

A better, faster Logs UI

New Relic’s log features are now presented more clearly within the UI, making it easier than ever before to find functions like parsing and drop filters right in the left hand toolbars.

We’ve added a new log summary view, which tries to pick the most salient key-value pairs from your logs, making it easier to scan through multiple log lines quickly.

We also leveraged a new custom visualization feature to create an easy way for you to combine log messages, regardless of their pattern or length, with the rest of your telemetry data already living in New Relic One via dashboards. 

New Relic product screen capture of Custom visualization

Using this new feature, your long log messages (with lots of attributes) can wrap, and you can resize the columns quickly. Just click on the icon in the top right corner of the log messages panel to use this feature.

Log message panel
Logs UI

Check out all the new and improved logs experience for yourself here so that you can start increasing the scope and granularity of insight into your full stack. You can also read our docs to learn more about our Logs UI.

Integration with Heroku for logs

New Relic logs now integrate with Heroku via a “logs drain” that allows you to view syslog entries within New Relic One.

This capability opens up the option for you to see business logic like items sold or most active users, as a custom New Relic dashboard, based solely on logs information.

To get started, follow the instructions below: 

  1. Download and install the Heroku CLI.
  2. Create a syslog drain that will send logs to New Relic and attach it to your app: heroku drains:add syslog+tls:// -a YOUR_APP_NAME
  3. Run the following to retrieve the drain token assigned to the drain created in Step 2: $ heroku drains -a YOUR_APP_NAME --json
  4. Copy the value from the "token" attribute returned by the command above:
    "addon": null,
    "created_at": "2018-12-04T00:59:46Z",
    "id": "906262a4-e151-45d2-b35a-a2dc0ea9e688",
    "token": "[your token goes here]",
    "updated_at": "2018-12-04T00:59:47Z",
    "url": "syslog://"
  1. Launch New Relic Logs and click Add more data sources.
  2. Click on the Heroku tile, add your drain token, and select an Insights insert API key to map it to.
  3. Click Add Heroku drain log, and logs will begin flowing to your New Relic One account within seconds.
Query your data New Relic screen capture

Subscribe to our Nerdlog emails to get weekly updates about the latest features and releases, or read up on our Nerdlog posts like our episode 2 recap or New Relic vector integration. Join the Nerdlog discussion live every Thursday at 12 p.m. PT (8 p.m. UTC) on Twitch or follow along in What’s New.

If you're not a New Relic customer, sign up for your free account today.