Forwarding Logs to Azure Log Analytics
This guide covers configuration of your App Builder application to forward logs to your Azure Log Analytics workspace.
Prerequisites
- Access to an Azure Log Analytics workspace. If you need to create one, follow Azure's guide
- 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
Steps to configure log forwarding
Open Azure Portal and navigate to the Azure Log Analytics workspace you want to use. On the workspace overview screen, pick Agent Management from the menu on the left. Copy the
Workspace ID
and thePrimary Key
for later use.Open Terminal and navigate to the App Builder project directory on your local machine.
Run this command, supplying the values copied in step 1 when prompted:
Copied to your clipboardaio app config set log-forwarding? select log forwarding destination: Azure Log Analytics? customer ID: <Workspace ID>? shared key: <Primary Key>? log type: <table_name_alpha_chars_only>Note:
- Replace the value of
Workspace ID
andPrimary Key
as copied in step 1. - Replace the value of
table_name_alpha_chars_only
with the custom table name that you wish to provide. This field accepts only alphabetic characters.
- Replace the value of
Verify that the configuration change has taken place:
Copied to your clipboardaio app config get log-forwardingExecute an action in your App Builder application workspace to generate logs.
On Azure Portal and the overview screen of your workspace, select Logs on the left menu. Run a query using the table name you provided in step 3. Note that the table name that shows up on the Azure portal will have the suffix
_CL
appended to the table name you provided.If you don't see any logs in Azure, please check for log forwarding errors:
Copied to your clipboardaio app config get log-forwarding errorsNext steps
If you are unable to set up log forwarding using these procedures, please visit Adobe App Builder forums for support.
Return to Managing Application Logs.
Return to Guides Index.