Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate and clarify logging [was: DAG logs are not persisted] #416

Open
razvan opened this issue Mar 28, 2024 · 0 comments
Open

Investigate and clarify logging [was: DAG logs are not persisted] #416

razvan opened this issue Mar 28, 2024 · 0 comments
Assignees
Labels

Comments

@razvan
Copy link
Member

razvan commented Mar 28, 2024

Update April 5th: @razvan hijacked this issue to add more clarifications to how logging works in Airflow in various circumstances. The documentation regarding logging is quite bare.

While investigating a CVE a couple of questions popped out that need clarification.

  • How/Where are logs written by the different roles/groups ?
  • How is the /stackable/airflow/log folder handled by the different roles (scheduler, executor, webserver) ? Why does it even contain files if we configure Airflow to write everything to /stackable/logs ?
  • How do the permissions of /stackable/logs come to be ? This folder is created multiple places:
    • the Pod command
    • log_config.py
  • ...

Following is the original request of this issue
DAG logs are ephemeral. When using the Kubernetes executor, they are only available on the executor pods and are lost when the pods are destroyed. This can be mitigated by the vector log collection infrastructure to save the logs to a remote system. The problem remains that the logs are not accessible via Airflow's web UI.

In addition, during tests it was found that the logs are not accessible in the Airflow web ui even while the executor pods are still alive. This is the bug aspect of this ticket that requires some more investigation.

@razvan razvan changed the title DAG logs are not persisted Investigate and clarify logging ~~DAG logs are not persisted~~ Apr 5, 2024
@razvan razvan changed the title Investigate and clarify logging ~~DAG logs are not persisted~~ Investigate and clarify logging ~DAG logs are not persisted~ Apr 5, 2024
@razvan razvan changed the title Investigate and clarify logging ~DAG logs are not persisted~ Investigate and clarify logging [was: DAG logs are not persisted] Apr 5, 2024
@razvan razvan self-assigned this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant