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}}