From dde6797e5e5fb92d17285c2a77905eae2488f493 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Mon, 30 Sep 2024 11:03:36 +0200 Subject: [PATCH] fix elasticsearch log file rotation Without quotes, the generated names end up looking like `bm.log< ".2023-08-29"` --- .../elasticsearch/templates/etc/elasticsearch/logging.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib-modules/elasticsearch/templates/etc/elasticsearch/logging.yml.erb b/contrib-modules/elasticsearch/templates/etc/elasticsearch/logging.yml.erb index 795fa78a..9679aa36 100644 --- a/contrib-modules/elasticsearch/templates/etc/elasticsearch/logging.yml.erb +++ b/contrib-modules/elasticsearch/templates/etc/elasticsearch/logging.yml.erb @@ -35,7 +35,7 @@ appender: type: <%= @file_rolling_type %> file: ${path.logs}/${cluster.name}.log <%- if @file_rolling_type == 'dailyRollingFile' -%> - datePattern: <%= @daily_rolling_date_pattern %> + datePattern: "<%= @daily_rolling_date_pattern %>" <%- elsif @file_rolling_type == 'rollingFile' -%> maxBackupIndex: <%= @rolling_file_max_backup_index %> maxFileSize: <%= @rolling_file_max_file_size %>