You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/08/07 17:20:54 UTC

[airflow] branch main updated: Add elasticsearch group to pre-2.7 defaults (#33166)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2d7460450d Add elasticsearch group to pre-2.7 defaults (#33166)
2d7460450d is described below

commit 2d7460450dda5cc2f20d1e8cd9ead9e4d1946909
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Mon Aug 7 19:20:46 2023 +0200

    Add elasticsearch group to pre-2.7 defaults (#33166)
    
    The elasticsearch group is likely to be moved to elasticsearch
    provider. Anticipating that (see #33135) we need to move it to
    pre-2.7 defaults in order to have back-compatibility for providers
    that assume default values to be there.
---
 airflow/config_templates/pre_2_7_defaults.cfg | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/airflow/config_templates/pre_2_7_defaults.cfg b/airflow/config_templates/pre_2_7_defaults.cfg
index abdef2ee07..2568d42445 100644
--- a/airflow/config_templates/pre_2_7_defaults.cfg
+++ b/airflow/config_templates/pre_2_7_defaults.cfg
@@ -65,6 +65,18 @@ task_track_started = True
 task_publish_max_retries = 3
 worker_precheck = False
 
+[elasticsearch]
+host =
+log_id_template = {dag_id}-{task_id}-{run_id}-{map_index}-{try_number}
+end_of_log_mark = end_of_log
+frontend =
+write_stdout = False
+json_format = False
+json_fields = asctime, filename, lineno, levelname, message
+host_field = host
+offset_field = offset
+index_patterns = _all
+
 [elasticsearch_configs]
 use_ssl = False
 verify_certs = True