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.
다음 단계
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.
이 블로그에 표현된 견해는 저자의 견해이며 반드시 New Relic의 견해를 반영하는 것은 아닙니다. 저자가 제공하는 모든 솔루션은 환경에 따라 다르며 New Relic에서 제공하는 상용 솔루션이나 지원의 일부가 아닙니다. 이 블로그 게시물과 관련된 질문 및 지원이 필요한 경우 Explorers Hub(discuss.newrelic.com)에서만 참여하십시오. 이 블로그에는 타사 사이트의 콘텐츠에 대한 링크가 포함될 수 있습니다. 이러한 링크를 제공함으로써 New Relic은 해당 사이트에서 사용할 수 있는 정보, 보기 또는 제품을 채택, 보증, 승인 또는 보증하지 않습니다.