You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "alex1404 (via GitHub)" <gi...@apache.org> on 2025/08/14 11:13:13 UTC
[I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
alex1404 opened a new issue, #54501:
URL: https://github.com/apache/airflow/issues/54501
### Apache Airflow version
3.0.4
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
We have Airflow deployed on Kubernetes, with logs being forwarded to Elasticsearch via Fluentd. After upgrading from version 2.10.4 to 3.0.4, we encountered an issue where task logs are no longer visible in stdout, which previously worked as expected in 2.10.4.
We attempted to use custom logging configurations, but the problem persists. Notably, writing logs to files still works correctly.
We would like to continue using Fluentd to send logs to Elasticsearch, rather than writing directly to Elasticsearch.
Do you have any insights into the root cause of this issue or suggestions for resolving it?
Apache Airflow
version | 3.0.4
executor | LocalExecutor,KubernetesExecutor
task_logging_handler | airflow.providers.elasticsearch.log.es_task_handler.ElasticsearchTaskHandler
[elasticsearch]
write_stdout = True
write_to_es = False
[logging]
remote_logging = True
### What you think should happen instead?
Tasks logs should be visible in stdout
### How to reproduce
create a simple task which prints to stdout
### Operating System
Debian GNU/Linux 12 (bookworm)
### Versions of Apache Airflow Providers
apache-airflow-providers-amazon 9.9.0
apache-airflow-providers-apache-kafka 1.9.0
apache-airflow-providers-celery 3.12.0
apache-airflow-providers-cncf-kubernetes 10.6.0
apache-airflow-providers-common-compat 1.7.1
apache-airflow-providers-common-io 1.6.0
apache-airflow-providers-common-messaging 1.0.3
apache-airflow-providers-common-sql 1.27.2
apache-airflow-providers-docker 4.4.0
apache-airflow-providers-elasticsearch 6.3.0
apache-airflow-providers-fab 2.2.1
apache-airflow-providers-ftp 3.13.0
apache-airflow-providers-git 0.0.3
apache-airflow-providers-google 16.0.0
apache-airflow-providers-grpc 3.8.0
apache-airflow-providers-hashicorp 4.3.0
apache-airflow-providers-http 5.3.1
apache-airflow-providers-microsoft-azure 12.4.1
apache-airflow-providers-mongo 5.2.0
apache-airflow-providers-mysql 6.3.1
apache-airflow-providers-odbc 4.10.0
apache-airflow-providers-openlineage 2.4.0
apache-airflow-providers-postgres 6.2.0
apache-airflow-providers-redis 4.1.0
apache-airflow-providers-sendgrid 4.1.1
apache-airflow-providers-sftp 5.3.1
apache-airflow-providers-slack 9.1.1
apache-airflow-providers-smtp 2.1.0
apache-airflow-providers-snowflake 6.4.0
apache-airflow-providers-ssh 4.1.0
apache-airflow-providers-standard 1.3.0
### Deployment
Official Apache Airflow Helm Chart
### 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "robertorobles (via GitHub)" <gi...@apache.org>.
robertorobles commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3204996883
This is related to #53821 as stated in issue https://github.com/apache/airflow/issues/49863#issuecomment-2954807262
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3204904150
What version of the Elasticsearch provider is installed? A lot of this behaviour comes from the provider too, so that is important to know
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3188501137
When referring to `stdout`, do you mean the Airflow UI?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3188072979
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed issue #54501: [v3.0.4] Task logs are no longer visible in stdout only in files
URL: https://github.com/apache/airflow/issues/54501
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "robertorobles (via GitHub)" <gi...@apache.org>.
robertorobles commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3200283098
I can confirm that I'm experiencing the same issue after upgrading to Airflow 3.0.4. Previously, task logs were visible in stdout and also written to log files, but now they only appear in files and are no longer printed to stdout.
By “stdout,” I mean the standard output stream of the Airflow task runner process (e.g., the output that would normally appear in container logs or the terminal if you're running tasks locally). This is typically captured by Kubernetes, Docker, or other orchestration environments, and forwarding logs via stdout is crucial when relying on centralized logging systems like Fluentd, Elasticsearch, or Cloud Logging.
I hope this helps clarify the issue—thanks for looking into it!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "laurenhall1526-netizen (via GitHub)" <gi...@apache.org>.
laurenhall1526-netizen commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-4112283048
Thanks for the update.
On Sun, Mar 22, 2026, 11:32 AM Subham ***@***.***> wrote:
> *Subham-KRLX* left a comment (apache/airflow#54501)
> <https://github.com/apache/airflow/issues/54501#issuecomment-4106553484>
>
> I have identified the root cause for #63960
> <https://github.com/apache/airflow/pull/63960>. In Airflow 3
> airflow_local_settings.py for Elasticsearch correctly sets REMOTE_TASK_LOG,
> but it is missing the update to DEFAULT_LOGGING_CONFIG["handlers"]["task"]
> with the ElasticsearchTaskHandler class.Because of this omission it falls
> back to the default FileTaskHandler for live logging, which doesn't know
> about the write_stdout configuration. This is why logs are missing from
> stdout. I will raise a PR to restore the missing handler configuration in
> airflow_local_settings.py so that live stdout logging works as expected
> again.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/airflow/issues/54501?email_source=notifications&email_token=B7IHA46YDECK3FPBTA6DFJL4SAIQ3A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJQGY2TKMZUHA2KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4106553484>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/B7IHA4YS2BFTRH7UOIUTQ7T4SAIQ3AVCNFSM6AAAAACW2YKMPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCMBWGU2TGNBYGQ>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-4106417879
cc @Subham-KRLX maybe you can take a look on this issue?
I see there is a PR linked but it seem to fix LocalExecutor where the issue is not about it directly
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "Subham-KRLX (via GitHub)" <gi...@apache.org>.
Subham-KRLX commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-4106553484
I have identified the root cause for #63960. In Airflow 3 airflow_local_settings.py for Elasticsearch correctly sets REMOTE_TASK_LOG, but it is missing the update to DEFAULT_LOGGING_CONFIG["handlers"]["task"] with the ElasticsearchTaskHandler class.Because of this omission it falls back to the default FileTaskHandler for live logging, which doesn't know about the write_stdout configuration. This is why logs are missing from stdout. I will raise a PR to restore the missing handler configuration in airflow_local_settings.py so that live stdout logging works as expected again.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "robertorobles (via GitHub)" <gi...@apache.org>.
robertorobles commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3204933095
> What version of the Elasticsearch provider is installed? A lot of this behaviour comes from the provider too, so that is important to know
I've tested with Airflow 3.0.3 and 3.0.4
and with Apache-Airflow-Providers-ElasticSearch 6.3.2 and 6.3.1
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "alex1404 (via GitHub)" <gi...@apache.org>.
alex1404 commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3220432745
> What version of the Elasticsearch provider is installed? A lot of this behaviour comes from the provider too, so that is important to know
apache-airflow-providers-elasticsearch 6.3.0 , any update?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "robertorobles (via GitHub)" <gi...@apache.org>.
robertorobles commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-3204930622
I've tested with Airflow 3.0.3 and 3.0.4
and with Apache-Airflow-Providers-ElasticSearch 6.3.2 and 6.3.1
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [v3.0.4] Task logs are no longer visible in stdout only in files [airflow]
Posted by "laurenhall1526-netizen (via GitHub)" <gi...@apache.org>.
laurenhall1526-netizen commented on issue #54501:
URL: https://github.com/apache/airflow/issues/54501#issuecomment-4106449838
I see the linked PR, but it seems focused on fixing the LocalExecutor,
whereas the issue doesn't seem to be directly related to it. I’ll take a
closer look and see if there’s something else we need to address.
On Sun, Mar 22, 2026, 10:05 AM Elad Kalif ***@***.***> wrote:
> *eladkal* left a comment (apache/airflow#54501)
> <https://github.com/apache/airflow/issues/54501#issuecomment-4106417879>
>
> cc @Subham-KRLX <https://github.com/Subham-KRLX> maybe you can take a
> look on this issue?
> I see there is a PR linked but it seem to fix LocalExecutor where the
> issue is not about it directly
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/airflow/issues/54501?email_source=notifications&email_token=B7IHA4ZUAVAZBAVE7RRASY34R76LBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJQGY2DCNZYG442M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-4106417879>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/B7IHA4ZNAQILH4EAJJZNGEL4R76LBAVCNFSM6AAAAACW2YKMPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCMBWGQYTOOBXHE>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org