Skip to content

Commit abee3de

Browse files
authored
Support setting gzip_compression flag for log forwarder (#794)
Co-authored-by: Tony Scott <tony.scott@nisc.coop>
1 parent c849d06 commit abee3de

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-logging/templates/configMap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ data:
384384
{{- with or .Values.splunk.hec.port .Values.global.splunk.hec.port }}
385385
hec_port {{ . }}
386386
{{- end }}
387+
{{- with or .Values.splunk.hec.gzip_compression .Values.global.splunk.hec.gzip_compression }}
388+
gzip_compression {{ . }}
389+
{{- end }}
387390
hec_token "#{ENV['SPLUNK_HEC_TOKEN']}"
388391
index_key splunk_index
389392
insecure_ssl {{ or .Values.splunk.hec.insecureSSL .Values.global.splunk.hec.insecureSSL | default false }}

helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-logging/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ splunk:
9999
caFile:
100100
# Indicates if 4xx errors should consume chunk. If set to true, plugin will not retry sending chunk to splunk when 4xx error occurs. (Default: true)
101101
consume_chunk_on_4xx_errors:
102+
# gzip_compression - boolean. If true, data is compressed before transfer to splunk. (Default: false)
103+
gzip_compression:
102104
# Configurations for Ingest API
103105
ingest_api:
104106
# serviceClientIdentifier is a string, the client identifier is used to make requests to the ingest API with authorization.
@@ -509,6 +511,7 @@ global:
509511
caFile:
510512
fullUrl:
511513
consume_chunk_on_4xx_errors:
514+
gzip_compression: false
512515
kubernetes:
513516
clusterName: "cluster_name"
514517
prometheus_enabled: true

helm-chart/splunk-connect-for-kubernetes/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ splunk-kubernetes-logging:
205205
caFile:
206206
# Indicates if 4xx errors should consume chunk. If set to true, plugin will not retry sending chunk to splunk when 4xx error occurs. (Default: true)
207207
consume_chunk_on_4xx_errors:
208+
# gzip_compression - boolean. If true, data is compressed before transfer to splunk. (Default: true) - Applies only to logging.
209+
gzip_compression:
208210
# Configurations for Ingest API
209211
ingest_api:
210212
# serviceClientIdentifier is a string, the client identifier is used to make requests to the ingest API with authorization.

0 commit comments

Comments
 (0)