 LogExporter
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"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_-]*1chunk 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.
connectionString string
Connection string of the Storage Account.
format string
JSONIONJSONFormat of the exported files
The format of the exported files
logFilePrefix string
kestra-log-filePrefix of the log files
The prefix of the log files name. The full file name will be logFilePrefix-localDateTime.json/ion
maxLinesPerFile integerstring
100000Maximum number of lines per file
The maximum number of lines per file
pemCertificate string
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.
sasToken string
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.
tenantId string
Tenant ID
