Replies: 1 comment
-
I think it should be done via convention. In your DAGs you can add specific logger "filtered.out" for example and configue it in the way you want in LOGGING_CONFIG: https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/logging-tasks.html#advanced-configuration - you can remove log propagation and make sure they are not sent to root logger. Try it this way. Let us know if it solves your issue. I am converting this one to a discussion and you if you test it @wolfier. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I want to filter out logs generated by Airflow workers during the files parsing process before task execution. Logs are printed when the file contains top level logging statements or module imports that contain logging statements.
Use case/motivation
In an effort to reduce cost from log ingestion, I want to be able to identify these top level logging statements to filter them.
I am able to determine the logs for a common successful celery task execution.
Users may include arbitrary logging statements that is hard to identify there are no distinguish markers.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions