You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ElasticSearch / Opensearch Task Handler does not render task log well #53526
In Airflow 3, the api-server renders well-formatted task logs that allows filtering based on log level. For example, the following is the rendered task logs when using FileTaskHandler (disabling remote logging)
However, when using ElasticsearchTaskHandler (And OpensearchTaskHandler), the logs are not rendered nicely:
What you think should happen instead
ElasticsearchTaskHandler or OpensearchTaskHandler should render the task log nicely, just like FileTaskHandler
How to reproduce
Run breeze start-airflow --executor CeleryExecutor --backend postgres --load-example-dags --db-reset to start a local airflow. Trigger any of the DAG run. Ship the task logs to ElasticSearch / Opensearch. Then try to read task log from the webUI
Anything else
As a sidenote, in the webUI, when using FileTaskHandler, it displays the file path of the task log. But when using ElasticSearchTaskHandler, it displays that the source is default_host which is confusing. I think it should display the hostname of the ElasticSearch
Activity