GitHub user Kimmy95 created a discussion: Airflow email_on_failure sends full 
logs in email — how to send only log URL?

I have enabled email_on_failure=True for my Apache Airflow DAG.
When a task fails, Airflow sends an email that contains the entire task log 
content along with the log URL.

I want to avoid including the full logs in the email body and only receive the 
log link (log URL) instead.

Is there a way to configure Airflow (via DAG, operator, email backend, or 
callback) to disable log content in failure emails while keeping the log link?

Airflow version: 3.1.3

GitHub link: https://github.com/apache/airflow/discussions/60502

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to