OP#233 add variable for puppetdb logs max age

This commit is contained in:
12ww1160
2026-02-02 21:52:25 +01:00
parent 3ef2a772c1
commit c5cb03d3a0
2 changed files with 3 additions and 1 deletions

View File

@@ -31,7 +31,7 @@
<fileNamePattern>/var/log/puppetlabs/puppetdb/puppetdb-status-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<!-- each file should be at most 200MB, keep 90 days worth of history, but at most 1GB total-->
<maxFileSize>200MB</maxFileSize>
<maxHistory>90</maxHistory>
<maxHistory><%= @pt_pptdb_log_max_age %></maxHistory>
<totalSizeCap>1GB</totalSizeCap>
</rollingPolicy>
<encoder>