
LogExporter
This task is designed to send logs to Azure Blob Storage.
Enterprise Edition Talk to us
This task is designed to send logs to Azure Blob Storage.
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"Examples
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
Properties
containerName*Requiredstring
Name of the container
Name of the container in the blob storage
endpoint*Requiredstring
Url of the Blob Storage
id*RequiredNon-dynamicstring
^[a-zA-Z0-9][a-zA-Z0-9_-]*1chunkintegerstring
1000The chunk size for every bulk request.
clientIdstring
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.
clientSecretstring
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.
connectionStringstring
Connection string of the Storage Account.
formatstring
JSONIONJSONFormat of the exported files
The format of the exported files
logFilePrefixstring
kestra-log-filePrefix of the log files
The prefix of the log files name. The full file name will be logFilePrefix-localDateTime.json/ion
maxLinesPerFileintegerstring
100000Maximum number of lines per file
The maximum number of lines per file
pemCertificatestring
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.
sasTokenstring
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.
tenantIdstring
Tenant ID
Metrics
files.countcounter
Number of files
logscounter
Number of logs
requests.countcounter
Number of requests
requests.durationtimer
Duration of requests