Skip to content

Commit

Permalink
style(Heroku log forwarding): Edited style
Browse files Browse the repository at this point in the history
  • Loading branch information
x8a committed Mar 31, 2022
1 parent e737e5b commit 76d3eec
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/content/docs/logs/forward-logs/heroku-log-forwarding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,22 @@ To enable our log management capabilities, start by creating a Heroku Syslog dra
1. Make sure your New Relic user account has the [Admin role](/docs/accounts/original-accounts-billing/original-users-roles/users-roles-original-user-model/#roles) assigned to it.
2. Download and install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#download-and-install).
3. Use the Heroku CLI to create a Syslog drain and attach it to the application you want to stream logs from, replacing `YOUR_APP_NAME` with the name of your Heroku application.

```
$ heroku drains:add syslog+tls://newrelic.syslog.nr-data.net:6515 -a <var>YOUR_APP_NAME</var>
```shell
$ heroku drains:add syslog+tls://newrelic.syslog.nr-data.net:6515 -a YOUR_APP_NAME
```

<Callout variant="important" title="EU Customers should use this instead">
```
$ heroku drains:add syslog+tls://newrelic.syslog.eu.nr-data.net:6515 -a <var>YOUR_APP_NAME</var>
If you're located in Europe, run this command instead:

```shell
$ heroku drains:add syslog+tls://newrelic.syslog.eu.nr-data.net:6515 -a YOUR_APP_NAME
```
</Callout>

4. Run the following command and copy the Heroku Syslog [drain token](https://devcenter.heroku.com/articles/log-drains#drain-tokens) from the `token` attribute:

```
$ heroku drains -a <var>YOUR_APP_NAME</var> --json
```shell
$ heroku drains -a YOUR_APP_NAME --json
```

```
```json
{
"addon": null,
"created_at": "2018-12-04T00:59:46Z",
Expand Down Expand Up @@ -75,7 +73,7 @@ If everything is configured correctly and your data is being collected, you shou
* [New Relic Logs UI](https://one.newrelic.com/launcher/logger.log-launcher)
* New Relic tools for running [NRQL queries](/docs/chart-builder/use-chart-builder/choose-data/use-advanced-nrql-mode-specify-data). For example, you can execute a query like this:

```
```sql
SELECT * FROM Log
```

Expand Down

0 comments on commit 76d3eec

Please sign in to comment.