Send Logs from Edge Delta to Azure Log Analytics
How to configure Azure when sending logs from Edge Delta to Azure Log Analytics.
Overview
You can configure Edge Delta agents to send logs, cluster patterns and samples, and custom data items to Azure Log Analytics.
Pipeline Configuration
To send telemetry data to Azure Log Analytics, configure Azure using instructions on this page, and add the Azure Log Analytics node to your Edge Delta pipeline.
Azure Configuration
You need the following objects configured in Azure:
Register Azure Application
Register Edge Delta as an application.
- Sign in to the Microsoft Entra admin center as at least a
Cloud Application Administrator
.
- Select Identity - Applications - App registrations and select New registration.
- Enter
Edge Delta Stream
, for example, as the application display name.
- Accounts in this organizational directory only is selected by default. Click Register.
- Copy and save the Application (client) ID and Directory (tenant) ID. The Application (client) ID value is used for the
client_id
parameter, while the Directory (tenant) ID is used for the tenant_id
parameter in the Log Analytics node.
- Click Add a certificates or secret.
- Click New client secret.
- Enter a description and expiration date and and click Add.
- Copy and save the secret Value. This secret Value value is used for the
client_secret
parameter in the Log Analytics node.
See the official Azure documentation for more details.
Data Collection Endpoint
Create the data collection endpoint in Azure Monitor.
- Navigate to the Data Collection Endpoints service in Azure.
- Click Create.
- Enter
Edge-Delta-Stream-Ingestion
, for example, as the Endpoint name.
- Specify your organization’s Subscription, Resource Group, and Region.
- Select Review + create. Then select Create.
- Open the Edge-Delta-Stream-Ingestion endpoint when it appears.
- Copy and save the Logs Ingestion value. This Logs Ingestion value is used for the
data_collection_endpoint
parameter in the Log Analytics node.
Log Analytics Workspace Table
Create a new table in the Log Analytics Workspace to receive the telemetry data.
Note: it is recommended to use two Azure Logs Analytic nodes to send logs and cluster patterns data separately.
- In the Azure portal, navigate to the Log Analytics workspaces service.
- Select the workspace that will receive data.
- Click Tables in the Settings section.
- Click Create and select New custom log (DCR-based)
- Specify a Table name.
- Click Create a new data collection rule.
- Specify a name for the data collection rule and click Done.
- Select the Data collection endpoint you created earlier, for example,
Edge-Delta-Stream-Ingestion
.
- Click Next.
- Upload a sample of logs in JSON format using this logs sample or this patterns sample depending on which node you are configuring.
- The timestamp field in Edge Delta is not recognized due to its data type. Click Transformation Editor.
- Update the query to read as follows using auto-complete to ensure there are no formatting errors:
source
| extend TimeGenerated = todatetime(timestamp)
- Click Run to test the query. The Edge Delta
timestamp
field should be used to populate the TimeGenerated
field. Click Apply.
- Click Next.
- Click Create.
Assign rule permissions for the Edge Delta Stream app:
- In the Azure portal, navigate to the Data collection rules service.
- Click the Data Collection rule you created in a previous step.
- Click JSON View.
- Copy and save the immutableId value without the quotation marks. This immutableId value is used for the
data_collection_rule_id
parameter in the Log Analytics node.
- Copy and save the first key name without the quotation marks from
streamDeclarations
, for example agent_CL
in the following snippet:
...
"properties": {
"immuteableId": "123456789"
"dataCollectionEndpointId": "/subsriptions/123456789/resour...",
"streamDeclarations": {
"agent_CL": {
"columns": [{
{...
This value is used for the stream_name
parameter in the Log Analytics node.
- Close the JSON view and click Access control (IAM).
- Click Add role assignment.
- Click the Monitoring Metrics Publisher role.
- Click Next.
- Click Select members.
- Search for and select Edge Delta Stream (the application name you registered earlier) and click Select.
- Click Review + assign.
- Click Review + assign to confirm.
A sample of patterns for creating a Log Analytics Workspace table.
A sample for creating a Log Analytics Workspace table.