You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kimmy95 (via GitHub)" <gi...@apache.org> on 2026/01/14 06:10:33 UTC
[D] Airflow email_on_failure sends full logs in email — how to send only log URL? [airflow]
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 commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] Airflow email_on_failure sends full logs in email — how to send only log URL? [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Airflow email_on_failure sends full logs in email — how to send only log URL?
This is likely your custom setting. default email template only contains log_url. You should look at email/ html_content_template configuration in airlfow or in the smtp provider (I think that config parameter moved from airflow to provider at some point in time - you need to check the changelogs of both airflow and provider.
GitHub link: https://github.com/apache/airflow/discussions/60502#discussioncomment-15498756
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org