LogExporter
Export logs to Azure Blob Storage
This task is designed to send logs to Azure Blob Storage.
type: "io.kestra.plugin.ee.azure.storage.LogExporter"
Ship logs to Azure Blob Storage
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.storage.LogExporter
endpoint: https://myblob.blob.core.windows.net/
tenantId: tenant_id
clientId: client_id
clientSecret: client_secret
containerName: logs
format: JSON
logFilePrefix: kestra-log-file
maxLinesPerFile: 1000000
chunk: 1000
YES
Name of the container
Name of the container in the blob storage
YES
Url of the Blob Storage
NO
^[a-zA-Z0-9][a-zA-Z0-9_-]*
1
YES
1000
The chunk size for every bulk request.
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.
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.
YES
Connection string of the Storage Account.
YES
JSON
ION
JSON
Format of the exported files
The format of the exported files
YES
kestra-log-file
Prefix of the log files
The prefix of the log files name. The full file name will be logFilePrefix-localDateTime.json/ion
YES
100000
Maximum number of lines per file
The maximum number of lines per file
YES
PEM Certificate
Your stored PEM certificate.
The tenantId, clientId and clientCertificate of the service principal are required for this credential to acquire an access token.
YES
The SAS token to use for authenticating requests.
This string should only be the query parameters (with or without a leading '?') and not a full URL.
YES
Tenant ID