Skip to content

Commit 6e8d01c

Browse files
committed
Move fluent bit output configureation to values file
1 parent a97d7ac commit 6e8d01c

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ We recommend that you use the `values.yaml` file for configuring your installati
225225

226226
To enable log collection for all Marklogic logs set logCollection.enabled to true. Set each option in logCollection.files to true of false depending on if you want to track each type of Marklogic log file.
227227

228-
In order to use the logs that are colleceted you must define an output in the configmap.yaml file. Fluent Bit will parse and output all the log files from each pod to the output you set.
228+
In order to use the logs that are colleceted you must define an output in the outputs section of the values file. Fluent Bit will parse and output all the log files from each pod to the output(s) you set.
229229

230-
For documentation on how to setup the Fluent Bit output with your logging backend see Fluent Bit's output documentation here: <https://docs.fluentbit.io/manual/pipeline/outputs>
230+
For documentation on how to configure the Fluent Bit output with your logging backend see Fluent Bit's output documentation here: <https://docs.fluentbit.io/manual/pipeline/outputs>
231231

232232

233233
## Adding and Removing Hosts from Clusters

charts/templates/configmap.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,7 @@ data:
8282
Mem_Buf_Limit 4MB
8383
{{- end }}
8484
85-
outputs.conf: |
86-
# Example output config for ElasticSearch output
87-
# [OUTPUT]
88-
# Name es
89-
# Match *
90-
# Host {{ .Values.logCollection.host }}
91-
# Port {{ .Values.logCollection.port }}
92-
# HTTP_User {{ .Values.logCollection.username }}
93-
# HTTP_Passwd {{ .Values.logCollection.password }}
94-
# Configure desired output below, documentation on how to set up output can be found here
95-
# https://docs.fluentbit.io/manual/pipeline/outputs
85+
outputs.conf: {{ toYaml .Values.logCollection.outputs | indent 2 }}
9686

9787
filters.conf: |
9888
# Enrich Logs

charts/values.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,14 @@ logCollection:
125125
requestLogs: true
126126
crashLogs: true
127127
auditLogs: true
128-
# Example values for ElasticSearch output
129-
# username: admin
130-
# password: admin
131-
# host: elasticsearch.default.svc.cluster.local
132-
# port: 9200
128+
outputs: |-
129+
# Example output config for ElasticSearch output
130+
# [OUTPUT]
131+
# Name es
132+
# Match *
133+
# Host elasticsearch.default.svc.cluster.local
134+
# Port 9200
135+
# HTTP_User admin
136+
# HTTP_Passwd admin
137+
# Documentation on how to set up output can be found here: https://docs.fluentbit.io/manual/pipeline/outputs
138+
# Configure desired output below

0 commit comments

Comments
 (0)