Azure Monitor Log Exporter
Certified
Enterprise Edition
Export logs to Azure Monitor
Azure Monitor Log Exporter
Export logs to Azure Monitor
This task is designed to send logs to Azure Monitor.
type: io.kestra.plugin.ee.azure.monitor.LogExporterExamples
Ship logs to Azure Monitor
id: log_shipper
namespace: company.team
triggers:
- id: daily
type: io.kestra.plugin.core.trigger.Schedule
cron: "@daily"
tasks:
- id: log_export
type: io.kestra.plugin.ee.core.log.LogShipper
logLevelFilter: INFO
batchSize: 1000
lookbackPeriod: P1D
logExporters:
- id: AzureLogExporter
type: io.kestra.plugin.ee.azure.monitor.LogExporter
endpoint: https://endpoint-host.ingest.monitor.azure.com
tenantId: tenant_id
clientId: client_id
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
ruleId: dcr-69f0b123041d4d6e9f2bf72aad0b62cf
streamName: Custom-JSONLogs
Installation
This Enterprise plugin requires an Enterprise image and access to the plugin registry. Install it with the following command:
kestractl plugins get io.kestra.plugin.ee:plugin-ee-azure --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
endpoint *string
URL of the Data Collection Endpoint
id *string
^[a-zA-Z0-9][a-zA-Z0-9_-]*1ruleId *string
ID of the Data Collection Rule
streamName *string
Name of the stream
chunk integerstring
1000The chunk size for every bulk request
clientId string
Client ID
Client ID of the Azure service principal. If you don't have a service principal, refer to create a service principal with Azure CLI.
clientSecret string
Client Secret
Service principal client secret. The tenantId, clientId and clientSecret of the service principal are required for this credential to acquire an access token.
pemCertificate string
PEM Certificate
Your stored PEM certificate.
The tenantId, clientId and pemCertificate of the service principal are required for this credential to acquire an access token.
tenantId string
Tenant ID
Metrics
logs counter
Number of logs
requests.count counter
Number of requests
requests.duration timer
Duration of requests