Unverified Commit 782fa81d by Guangbo Committed by GitHub

update fluentd to fix output plugins (#119)

parent 2c49506f
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
description: A Fluentd Aggregator Helm chart Continuously Receive Events From The Log Forwarders. description: A Fluentd Aggregator Helm chart Continuously Receive Events From The Log Forwarders.
icon: https://www.fluentd.org/assets/img/miscellany/fluentd-logo.png icon: https://www.fluentd.org/assets/img/miscellany/fluentd-logo.png
name: fluentd-aggregator name: fluentd-aggregator
version: 0.2.0 version: 0.2.1
appVersion: v2.3.1 appVersion: v2.3.1
home: https://www.fluentd.org/ home: https://www.fluentd.org/
sources: sources:
......
...@@ -106,7 +106,7 @@ questions: ...@@ -106,7 +106,7 @@ questions:
- "%Y." - "%Y."
- variable: env.OUTPUT_SPLUNK_HOST - variable: env.OUTPUT_SPLUNK_HOST
default: "" default: ""
description: "e.g. https://192.168.1.10" description: "e.g. 192.168.1.10"
type: string type: string
label: Splunk Endpoint label: Splunk Endpoint
required: true required: true
...@@ -120,6 +120,14 @@ questions: ...@@ -120,6 +120,14 @@ questions:
required: true required: true
group: "Output Configs" group: "Output Configs"
show_if: "output.type=splunk_hec" show_if: "output.type=splunk_hec"
- variable: env.OUTPUT_SPLUNK_TOKEN
default: ""
description: "Tokens are entities that let logging agents and HTTP clients connect to the HEC input"
type: string
label: Splunk Token
required: true
group: "Output Configs"
show_if: "output.type=splunk_hec"
- variable: env.OUTPUT_SPLUNK_SOURCE_TYPE - variable: env.OUTPUT_SPLUNK_SOURCE_TYPE
default: "" default: ""
description: "A default field that identifies the source of an event, that is, where the event originated" description: "A default field that identifies the source of an event, that is, where the event originated"
...@@ -264,19 +272,19 @@ questions: ...@@ -264,19 +272,19 @@ questions:
# fluentd configs # fluentd configs
- variable: configMaps.filter\.conf - variable: configMaps.filter\.conf
default: "" default: ""
description: "fluentd filter config" description: "fluentd filter config, https://docs.fluentd.org/v1.0/articles/filter-plugin-overview"
type: multiline type: multiline
label: Fluentd Filter Config label: Fluentd Filter Config
group: "Filter Configs" group: "Filter Configs"
- variable: configMaps.parser\.conf - variable: configMaps.parser\.conf
default: "" default: ""
description: "fluentd parser config" description: "fluentd parser config, https://docs.fluentd.org/v1.0/articles/parser-plugin-overview"
type: multiline type: multiline
label: Fluentd Parser Config label: Fluentd Parser Config
group: "Fluentd Parser Configs" group: "Fluentd Parser Configs"
- variable: configMaps.formatter\.conf - variable: configMaps.formatter\.conf
default: "" default: ""
description: "fluentd formatter config" description: "fluentd formatter config, https://docs.fluentd.org/v1.0/articles/formatter-plugin-overview"
type: multiline type: multiline
label: Fluentd Formatter Config label: Fluentd Formatter Config
group: "Formatter Configs" group: "Formatter Configs"
...@@ -16,8 +16,11 @@ data: ...@@ -16,8 +16,11 @@ data:
{{- end }} {{- end }}
output.conf: |- output.conf: |-
{{- if eq .Values.output.type "elasticsearch" }} {{- if eq .Values.output.type "custom" }}
{{ .Values.output.customConf | indent 4 }}
{{- else }}
<match **> <match **>
{{- if eq .Values.output.type "elasticsearch" }}
@type elasticsearch @type elasticsearch
@log_level info @log_level info
include_tag_key true include_tag_key true
...@@ -100,7 +103,7 @@ data: ...@@ -100,7 +103,7 @@ data:
# ssl parameter # ssl parameter
# use_ssl true # use_ssl true
# ca_file /path/to/ca.pem # ca_file /path/to/ca.pem
{{- end }}
# fluentd file buffer config # fluentd file buffer config
<buffer> <buffer>
@type file @type file
...@@ -117,7 +120,3 @@ data: ...@@ -117,7 +120,3 @@ data:
</buffer> </buffer>
</match> </match>
{{- end }} {{- end }}
{{- if eq .Values.output.type "custom" }}
{{ .Values.output.customConf | indent 4 }}
{{- end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment