Setting up New Relic Log Delivery

RTLD may automatically deliver compressed log data to your New Relic account by submitting HTTPS POST requests to it. Each request adds a log file to your account. This log file contains a compressed JSON or CSV document that uniquely identifies a set of log data and describes one or more log entries.

Learn more: RTLD CDN | RTLD Rate Limiting

The format for log data delivered to New Relic is JSON Array. This log format does not provide information that uniquely identifies a set of log data. As a result, there is no way to check for gaps in sequence numbers when attempting to identify missing log data.

RTLD CDN and RTLD Rate Limiting support delivery to the New Relic destination.

To create a log delivery profile

  1. Optional. Register an Inserts insight API key that is dedicated for RTLD log delivery.

    View New Relic documentation on how to register an Inserts insight API key.

  2. Navigate to the Real-Time Log Delivery CDN | Rate Limiting page. From the main menu, navigate to More and then find Real-Time Log Delivery under Analytics. Select either CDN or RL.

  3. Click Add Profile.
  4. From the Log Delivery Method option, select New Relic.
  5. Set the Account ID option to your New Relic account ID.
  6. Set the Event Type option to a label that identifies log data delivered to New Relic as a result of this profile. Specify a label that solely consists of alphanumeric characters, underscores, and colons.

    Query delivered log data by constructing a NRQL that selects data using this label (e.g., SELECT * FROM Event Type).

  7. Set the Insert Key option to an Inserts insight API key.
  8. From the Downsample the Logs option, determine whether all or downsampledReduces the amount of log data that will be delivered. For example, you may choose to only deliver 1% of your log data. log data will be delivered.

    • All Log Data: Verify that the Downsample the Logs option is disabled.
    • Downsampled Log Data: Downsample logs to 0.1%, 1%, 25%, 50%, or 75% of total log data by enabling the Downsample the Logs option and then selecting the desired rate from the Downsampling Rate option.

      Use this capability to reduce the amount of data that needs to be processed or stored by New Relic.
      RTLD CDN Only: Downsampling log data also reduces usage charges for this service.

  9. Log delivery setup varies according to whether you are delivering log data for CDN traffic or rate limited requests.

  10. Set the Log Delivery Enabled option to the "on" position.

  11. Click Save.
More Information