Replies: 2 comments
-
I think it is quite expected to have the local logs in the time-zone of teh system that they run on. Changing timezone of a running system is somewhat strangea and rare event and one could say, you should also convert your current logs to the new timezone if you want to keep them in sync. But if you really want to change the log format to contain the time-zone - you are also free to change it AIRFLOW__LOGGING__LOG_FORMAT https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#log-format I leave it as a discussion because maybe there are some other things to consider. |
Beta Was this translation helpful? Give feedback.
-
Didn’t we already do this? #24373 |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.3.3
What happened
I changed airflow core, airflow webserver and linux system timezone to IST from UTC.
Everything is as expected except logs.
When I select UTC in UI, the log is what is in disk, IST (+5:30) time. But when I select IST in UI, the log timestamps change to UTC +5:30 +5:30.
Either the logs should contain timezone info, else we should consider the system timezone as the log timezone.
Airflow Timezone Info:-
System Timezone Info:-
Log file from disk:-
Log file from UI with UTC time:-
Log file from UI with IST time:-
What you think should happen instead
UI log timestamps should be same as disk, else UI should detect what the timezone the logs were written in, else timezone info should be written into logs.
How to reproduce
No response
Operating System
Ubuntu 20.04.3 LTS
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions