🚀 New! Kestra raises $3 million to grow Learn more

Fetch Fetch

yaml
type: "io.kestra.core.tasks.log.Fetch"

Fetch execution logs and store them in a file.

This task is useful to automate moving logs between various systems and environments.

Examples

yaml
id: "fetch"
type: "io.kestra.core.tasks.log.Fetch"
level: INFO
executionId: "{{ trigger.executionId }}"
yaml
id: "fetch"
type: "io.kestra.core.tasks.log.Fetch"
level: WARN
executionId: "{{ execution.id }}"
tasksId: 
  - "previous_task_id"

Properties

executionId

  • Type: string
  • Dynamic: ✔️
  • Required:

Filter for a specific execution. If not set, the task will use the ID of the current execution.

level

  • Type: string
  • Dynamic:
  • Required:
  • Default: INFO
  • Possible Values:
    • ERROR
    • WARN
    • INFO
    • DEBUG
    • TRACE

The lowest log level that you want to fetch.

tasksId

  • Type: array
  • SubType: string
  • Dynamic:
  • Required:

Filter for one or more task(s).

Outputs

size

  • Type: integer
  • Dynamic:
  • Required:

The number of rows fetched.

uri

  • Type: string
  • Dynamic:
  • Required:
  • Format: uri

Internal storage URI of stored results. Stored as Amazon ION file in a row per row format.