Forwarding Logs to New Relic
This guide covers configuration of your App Builder application to forward logs to your New Relic deployment.
Prerequisites
A New Relic account and an Ingest license API key.
A local development setup for your App Builder application.
The latest version of AIO CLI. Check by running
aio --version
; update by runningnpm install -g @adobe/aio-cli
Identify the API key and base URI
Log in to New Relic and navigate to the API keys screen. Pick the
INGEST - LICENSE
API key type you want to use and copy thekey
value for later use.Depending on the region hosting your New Relic account, you must use the United States or Europe endpoint as a
base uri
.If you don't know the region of your New Relic instance, check the browser URL of your New Relic home.
If the URL begins with
https://one.newrelic.com/
, specifyhttps://log-api.newrelic.com/log/v1
as the URIIf it begins with
https://one.eu.newrelic.com/
, specifyhttps://log-api.eu.newrelic.com/log/v1
Set up log forwarding in App Builder
From the command line, navigate to the App Builder project directory on your local machine.
Run this command, and supplying values from previous steps:
Copied to your clipboardaio app config set log-forwarding? select log forwarding destination: New Relic? base URI: <base_uri>? license key: <license_key>The URI value must include the protocol (
https://
).Verify that the configuration change has taken effect:
Copied to your clipboardaio app config get log-forwardingExecute an action in your App Builder application workspace to generate logs.
Go to New Relic Home > Logs and run your query.
If you don't see any logs in New Relic, check for log forwarding errors:
Copied to your clipboardaio app config get log-forwarding errors
Next steps
If you are unable to set up log forwarding using these procedures, please visit Adobe Experience Leage App Builder Community for support.
Return to Managing Application Logs.
Return to Guides Index.