From 8833ea7f681cc9d28496e655d9e088808d340019 Mon Sep 17 00:00:00 2001 From: "V. Shivannikov" Date: Thu, 11 Sep 2025 21:22:16 +0300 Subject: [PATCH] feat: add journal properties Signed-off-by: V. Shivannikov --- charts/graylog/Chart.yaml | 2 +- charts/graylog/templates/configmap.yaml | 5 ++++- charts/graylog/values.yaml | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/charts/graylog/Chart.yaml b/charts/graylog/Chart.yaml index fb449b3..9470c3b 100755 --- a/charts/graylog/Chart.yaml +++ b/charts/graylog/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: graylog home: https://www.graylog.org -version: 2.4.0 +version: 2.4.1 appVersion: 6.3.3 description: Graylog is the centralized log management solution built to open standards for capturing, storing, and enabling real-time analysis of terabytes diff --git a/charts/graylog/templates/configmap.yaml b/charts/graylog/templates/configmap.yaml index 4c08916..956c3b7 100644 --- a/charts/graylog/templates/configmap.yaml +++ b/charts/graylog/templates/configmap.yaml @@ -115,10 +115,13 @@ data: inputbuffer_ring_size = {{ .Values.graylog.options.inputBufferRingSize | default 65536 }} inputbuffer_processors = {{ .Values.graylog.options.inputbufferProcessors | default 2 }} inputbuffer_wait_strategy = blocking - message_journal_enabled = true + message_journal_enabled = {{ .Values.graylog.journal.enabled }} # Do not change `message_journal_dir` location message_journal_dir = /usr/share/graylog/data/journal message_journal_max_size = {{ .Values.graylog.journal.maxSize }} + message_journal_max_age = {{ .Values.graylog.journal.maxAge }} + message_journal_segment_age = {{ .Values.graylog.journal.segmentAge }} + message_journal_segment_size = {{ .Values.graylog.journal.segmentSize }} lb_recognition_period_seconds = 3 # Use a replica set instead of a single host mongodb_uri = {{ template "graylog.mongodb.uri" . }} diff --git a/charts/graylog/values.yaml b/charts/graylog/values.yaml index 3a22325..23200e9 100644 --- a/charts/graylog/values.yaml +++ b/charts/graylog/values.yaml @@ -498,6 +498,10 @@ graylog: # elasticsearch_idle_timeout = -1s journal: + ## Enable the disk-based message journal. + ## + enabled: true + ## Sometime Graylog journal continually grow up or corrupt and cause Graylog unable to start. ## You need to clean up all journal files in order to run the Graylog. ## Change `graylog.journal.deleteBeforeStart` to `true` to delete all journal files before start @@ -509,6 +513,20 @@ graylog: ## maxSize: 5gb + ## The maximum time the journal holds messages before they are written to the search backend. + ## Works with message_journal_max_size so that message writes are triggered by whichever property is hit first. + ## + maxAge: 12h + + ## Controls the period of time after which Graylog forces the log to roll + ## even if the segment file isn’t full to ensure that retention can delete or compact old data. + ## + segmentAge: 1h + + ## Sets the size of the journal segment. + ## + segmentSize: 100mb + init: ## Init Container image ##