jedcunningham commented on issue #16828:
URL: https://github.com/apache/airflow/issues/16828#issuecomment-875013879
@imamdigmi, could you try this in your environment? If it works, we can make
the index configurable.
```
--- a/airflow/providers/elasticsearch/log/es_task_handler.py
+++ b/airflow/providers/elasticsearch/log/es_task_handler.py
@@ -225,7 +225,11 @@ class ElasticsearchTaskHandler(FileTaskHandler,
ExternalLoggingMixin, LoggingMix
:type metadata: dict
"""
# Offset is the unique key for sorting logs given log_id.
- search = Search(using=self.client).query('match_phrase',
log_id=log_id).sort(self.offset_field)
+ search = (
+ Search(using=self.client, index="airflow-*")
+ .query('match_phrase', log_id=log_id)
+ .sort(self.offset_field)
+ )
```
--
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]