Skip to content

How to use get logs end point in REST API #22415

Answered by potiuk
wuminorb asked this question in Q&A
Discussion options

You must be logged in to vote

You get the same logs as you see in the UI. They are content of the log files written by tasks. You can control logs by airflow configuration: https://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/logging-architecture.html - you do not know whether the log is complete or not. They are not streaming, you get the full content of logs present for the task at the moment you query. You can also check the status of tasks using other API endpoints and get the log when task is finished - then you know it is "complete".

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@potiuk
Comment options

potiuk Mar 22, 2022
Collaborator

@anovv
Comment options

@anovv
Comment options

@anovv
Comment options

@potiuk
Comment options

potiuk Aug 19, 2023
Collaborator

Answer selected by wuminorb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants