From bf255b03d9f6863de6d56c6d0e43fce31191eb1c Mon Sep 17 00:00:00 2001 From: Jonas Kunz Date: Thu, 12 Dec 2024 15:26:12 +0100 Subject: [PATCH] Add support for changed spring boot rolling policy properties --- .../logging/logback/boot/ecs-file-appender.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/logback-ecs-encoder/src/main/resources/co/elastic/logging/logback/boot/ecs-file-appender.xml b/logback-ecs-encoder/src/main/resources/co/elastic/logging/logback/boot/ecs-file-appender.xml index 80749f56..56c145f0 100644 --- a/logback-ecs-encoder/src/main/resources/co/elastic/logging/logback/boot/ecs-file-appender.xml +++ b/logback-ecs-encoder/src/main/resources/co/elastic/logging/logback/boot/ecs-file-appender.xml @@ -13,11 +13,12 @@ ECS JSON file appender logback configuration provided for import, similar to the ${LOG_FILE}.json - ${LOG_FILE_CLEAN_HISTORY_ON_START:-false} - ${ROLLING_FILE_NAME_PATTERN:-${LOG_FILE}.json.%d{yyyy-MM-dd}.%i.gz} - ${LOG_FILE_MAX_SIZE:-10MB} - ${LOG_FILE_MAX_HISTORY:-7} - ${LOG_FILE_TOTAL_SIZE_CAP:-0} + + ${LOG_FILE_CLEAN_HISTORY_ON_START:-${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}} + ${ROLLING_FILE_NAME_PATTERN:-${LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN:-${LOG_FILE}.json.%d{yyyy-MM-dd}.%i.gz}} + ${LOG_FILE_MAX_SIZE:-${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB}} + ${LOG_FILE_MAX_HISTORY:-${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-7}} + ${LOG_FILE_TOTAL_SIZE_CAP:-${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0}}