
Kestra Plugin Fetch
CertifiedFetch execution logs to storage
Kestra Plugin Fetch
Fetch execution logs to storage
Downloads logs for an execution using optional task filters and minimum level. Defaults to the current execution and level INFO. Stores results as an ION file in internal storage and returns its URI and row count.
type: io.kestra.plugin.kestra.logs.FetchExamples
id: fetch_logs_flow
namespace: company.team
tasks:
- id: my_task
type: io.kestra.plugin.scripts.shell.Commands
commands:
- echo "Processing data"
- echo "Task completed"
- id: fetch_logs
type: io.kestra.plugin.kestra.logs.Fetch
level: INFO
executionId: "{{ execution.id }}"
- id: log_count
type: io.kestra.plugin.core.log.Log
message: "Fetched {{ outputs.fetch_logs.size }} log entries"
Fetch WARN logs for a specific execution and task
id: kestra_logs_fetch
namespace: company.team
tasks:
- id: fetch
type: io.kestra.plugin.kestra.logs.Fetch
level: WARN
executionId: "{{ execution.id }}"
tasksId:
- "previous_task_id"
Properties
auth Non-dynamic
Select API authentication
Use either an API token or HTTP Basic (username/password); do not provide both.
io.kestra.plugin.kestra.AbstractKestraTask-Auth
API token for bearer auth
trueAutomatically retrieve credentials from Kestra's configuration if available
The default configuration can be configured globally inside the Kestra configuration file:
- Set
kestra.tasks.sdk.authentication.api-tokento use an API token - Set
kestra.tasks.sdk.authentication.usernameandkestra.tasks.sdk.authentication.passwordfor HTTP basic authentication - Set
kestra.tasks.sdk.authentication.urlto also default the Kestra API endpoint (seekestraUrlabove) The Enterprise edition also provides setting a default configuration at the Namespace or Tenant level by an administrator. Set to false to also opt out of the default URL.
Password for HTTP Basic auth
Username for HTTP Basic auth
executionId string
Execution id to fetch
Defaults to the current execution ID. Provide namespace and flowId when referencing an execution from another flow.
flowId string
Execution flow id
Required when fetching a different flow's execution without a fully qualified ID.
kestraUrl string
Override Kestra API endpoint
URL used for calls to the Kestra API. When null, falls back to the url configured alongside the default SDK authentication (Namespace or Tenant level, Enterprise edition), then renders {{ kestra.url }} from configuration; if still empty, defaults to http://localhost: 8080. Trailing slashes are stripped before use.
level string
INFOERRORWARNINFODEBUGTRACEMinimum log level
Defaults to INFO; lower levels are excluded.
namespace string
Execution namespace
Used when targeting another execution; defaults to the current flow namespace.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
tasksId array
Task ids filter
Limit logs to these task ids; empty list fetches all tasks.
tenantId string
Override target tenant
Tenant identifier applied to API calls; defaults to the current execution tenant.
Outputs
size integer
The number of rows fetched
uri string
uriInternal storage URI of stored results
Logs are stored as an Amazon ION file, one record per row.