diff options
Diffstat (limited to 'sw-server/src/main/resources/logback-spring.xml')
-rw-r--r-- | sw-server/src/main/resources/logback-spring.xml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw-server/src/main/resources/logback-spring.xml b/sw-server/src/main/resources/logback-spring.xml index 07b9e58e..afb338bd 100644 --- a/sw-server/src/main/resources/logback-spring.xml +++ b/sw-server/src/main/resources/logback-spring.xml @@ -2,14 +2,11 @@ <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <include resource="org/springframework/boot/logging/logback/console-appender.xml"/> - <appender name="LOKI" class="com.github.loki4j.logback.InstrumentedLoki4jAppender"> - <!-- - Loki Cloud hosted solution is limiting the batch size to 65536 Bytes, our log lines are exceeding this - limit quite often so we are sending them with a granularity of 1 instead of the default 1000. - The library does not provide a `batchSize` expressed in Bytes yet, so we cannot set it smarter than that. - --> - <batchSize>1</batchSize> + <appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender"> + <!-- Loki Cloud hosted solution is limiting the batch size to 65536 Bytes --> + <batchMaxBytes>65536</batchMaxBytes> <batchTimeoutMs>10000</batchTimeoutMs> + <metricsEnabled>true</metricsEnabled> <http> <url>https://logs-prod-us-central1.grafana.net/loki/api/v1/push</url> <auth> |