-
Hi, we are try to using get logs end point ( https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_log ) in REST API. But we can't find any doc for the log's formate. How should we parse the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
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". |
Beta Was this translation helpful? Give feedback.
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".