kuikeelc opened a new issue, #24958:
URL: https://github.com/apache/airflow/issues/24958
### Apache Airflow version
2.3.3 (latest released)
### What happened
When you use `remote_logging = True `and push the logs to GCS. It writes the
log exactly as defined in `log_filename_template`. However, when reading the
log back, it adds 1 and Airflow gives the error that it can't find the logfile.
Our current setting is:
`log_filename_template = dag_id={{ "{{" }} ti.dag_id {{ "}}" }}/run_id={{
"{{" }} ti.run_id {{ "}}" }}/task_id={{ "{{" }} ti.task_id {{ "}}" }}/{%% if
ti.map_index >= 0 %%}map_index={{ "{{" }} ti.map_index {{ "}}" }}/{%% endif
%%}attempt={{ "{{" }} ti.try_number {{ "}}" }}.log`
Every task in try_number 1 will be read as 2.log, which is not correct.
### What you think should happen instead
_No response_
### How to reproduce
Use v2.3.3 icm with GCS and remote_logging = True
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]