Azure Logs Ingestion API

Send logs to Azure Log Analytics using Logs Ingestion API

Azure Logs Ingestion plugin lets you ingest your records using Logs Ingestion API in Azure Monitor to supported Azure tables or to custom tables that you create.

The Logs ingestion API requires the following components:

  • A Data Collection Endpoint (DCE)

  • A Data Collection Rule (DCR) and

  • A Log Analytics Workspace

To visualize the basic logs ingestion operation, see the following image:

Log ingestion overview

To get more details about how to set up these components, refer to the following documentation:

Configuration parameters

Key
Description
Default

auth_url

Override the OAuth 2.0 token endpoint URL. Must use HTTPS, or HTTP only with a loopback address (localhost or 127.0.0.1). When set, tenant_id is optional.

none

client_id

The client ID of the AAD application.

none

client_secret

The client secret of the AAD application (App Secret).

none

compress

Optional. Enable HTTP payload gzip compression.

false

dce_url

Data Collection Endpoint (DCE) URL.

none

dcr_id

Data Collection Rule (DCR) immutable ID.

none

table_name

The name of the custom log table (include the _CL suffix as well if applicable).

none

tenant_id

The tenant ID of the Azure Active Directory (AAD) application. Not required when auth_url is set.

none

time_generated

Optional. If enabled, the timestamp appended under time_key is formatted as an ISO 8601 string. If disabled, it's a floating-point number representing seconds since Unix epoch.

false

time_key

Optional. Specify the key name where the timestamp will be stored.

@timestamp

workers

The number of workers to perform flush operations for this output.

0

Get started

To send records into an Azure Log Analytics using Logs Ingestion API the following resources needs to be created:

  • A Data Collection Endpoint (DCE) for ingestion

  • A Data Collection Rule (DCR) for data transformation

  • An app registration with client secrets (for DCR access).

Follow this guideline to set up the DCE, DCR, app registration and a custom table.

Configuration file

Use this configuration file to get started:

Set up your DCR transformation based on the JSON output from the Fluent Bit pipeline (input, parser, filter, output).

Last updated

Was this helpful?