[
https://issues.apache.org/jira/browse/AIRFLOW-4021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16784983#comment-16784983
]
Kiran Gavali commented on AIRFLOW-4021:
---------------------------------------
Would it be possible to use the following property in airflow.cfg when
generating the email content:
{{log_filename_template = \{{ ti.dag_id }}/\{{ ti.task_id }}/\{{ ts }}/\{{
try_number }}.log}}
> Log file location in email alert incorrect
> ------------------------------------------
>
> Key: AIRFLOW-4021
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4021
> Project: Apache Airflow
> Issue Type: Bug
> Components: logging
> Affects Versions: 1.10.1
> Reporter: Kiran Gavali
> Priority: Minor
>
> Log files for task tries are stored inĀ
> {{base_log_dir/dag_id/task_id/execution_date_iso_format/try_number.log}}. On
> task failure, the email alert that is sent specifies "Log file:" path as
> {{base_log_dir/dag_id/task_id/execution_date_iso_format.log}}. UntilĀ
> AIRFLOW-3909 is fixed, one would have to use the log file path on the server
> mentioned in the email alert to view the log for the failed try. Related code
> line is
> [here|https://github.com/apache/airflow/blob/ad02179c28f1f93cbf55789b9ca8f3b9eeafeff7/airflow/models/__init__.py#L875].
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)