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.
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.
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:
- Download and install the Heroku CLI.
- Create a syslog drain that will send logs to New Relic and attach it to your app: heroku drains:add syslog+tls://newrelic.syslog.nr-data.net:6515 -a YOUR_APP_NAME
- Run the following to retrieve the drain token assigned to the drain created in Step 2: $ heroku drains -a YOUR_APP_NAME --json
- 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://logs.example.com"
}
- Launch New Relic Logs and click Add more data sources.
- Click on the Heroku tile, add your drain token, and select an Insights insert API key to map it to.
- Click Add Heroku drain log, and logs will begin flowing to your New Relic One account within seconds.
Próximos passos
For more information about the Heroku Cloud integration for logs and how to view your logs that are streaming, you can head to What’s New or review our docs.
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.
As opiniões expressas neste blog são de responsabilidade do autor e não refletem necessariamente as opiniões da New Relic. Todas as soluções oferecidas pelo autor são específicas do ambiente e não fazem parte das soluções comerciais ou do suporte oferecido pela New Relic. Junte-se a nós exclusivamente no Explorers Hub ( discuss.newrelic.com ) para perguntas e suporte relacionados a esta postagem do blog. Este blog pode conter links para conteúdo de sites de terceiros. Ao fornecer esses links, a New Relic não adota, garante, aprova ou endossa as informações, visualizações ou produtos disponíveis em tais sites.