LogExporter
Export logs to Azure Monitor
This task is designed to send logs to Azure Monitor.
yaml
type: "io.kestra.plugin.ee.azure.monitor.LogExporter"
Ship logs to Azure Monitor
yaml
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: client_secret
ruleId: dcr-69f0b123041d4d6e9f2bf72aad0b62cf
streamName: Custom-JSONLogs
Dynamic
YES
Url of the Data Collection Endpoint
Dynamic
NO
Validation RegExp
^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length
1
Dynamic
YES
Id of the Data Collection Rule
Dynamic
YES
Name of the stream
Dynamic
YES
Default
1000
The chunk size for every bulk request.
Dynamic
YES
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.
Dynamic
YES
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.
Dynamic
YES
PEM Certificate
text
Your stored PEM certificate.
The tenantId, clientId and clientCertificate of the service principal are required for this credential to acquire an access token.
Dynamic
YES
Tenant ID