Skip to content

Commit dde6797

Browse files
committed
fix elasticsearch log file rotation
Without quotes, the generated names end up looking like `bm.log< ".2023-08-29"`
1 parent d69dff2 commit dde6797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib-modules/elasticsearch/templates/etc/elasticsearch/logging.yml.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ appender:
3535
type: <%= @file_rolling_type %>
3636
file: ${path.logs}/${cluster.name}.log
3737
<%- if @file_rolling_type == 'dailyRollingFile' -%>
38-
datePattern: <%= @daily_rolling_date_pattern %>
38+
datePattern: "<%= @daily_rolling_date_pattern %>"
3939
<%- elsif @file_rolling_type == 'rollingFile' -%>
4040
maxBackupIndex: <%= @rolling_file_max_backup_index %>
4141
maxFileSize: <%= @rolling_file_max_file_size %>

0 commit comments

Comments
 (0)