Skip to content

Commit

Permalink
Issue 74 - add fluentd output logging format variable (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Burns <[email protected]>
  • Loading branch information
Ghazgkull authored Apr 16, 2021
1 parent 470a0cf commit 0d23316
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/fluentd-elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: fluentd-elasticsearch
version: 11.10.0
version: 11.11.0
appVersion: 3.2.0
type: application
home: https://www.fluentd.org/
Expand Down
5 changes: 3 additions & 2 deletions charts/fluentd-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The following table lists the configurable parameters of the Fluentd elasticsear
| `awsSigningSidecar.network.remoteReadTimeoutSeconds` | AWS Sidecar socket read timeout when talking to ElasticSearch | `15` |
| `awsSigningSidecar.image.repository` | AWS signing sidecar repository image | `abutaha/aws-es-proxy` |
| `awsSigningSidecar.image.tag` | AWS signing sidecar repository tag | `v1.0` |
| `awsSigningSidecar.args` | Additional command-line arguments for the AWS signing sidecar container | `[]` |
| `awsSigningSidecar.args` | Additional command-line arguments for the AWS signing sidecar container | `[]` |
| `elasticsearch.auth.enabled` | Elasticsearch Auth enabled | `false` |
| `elasticsearch.auth.user` | Elasticsearch Auth User | `null` |
| `elasticsearch.auth.password` | Elasticsearch Auth Password | `null` |
Expand Down Expand Up @@ -124,10 +124,11 @@ The following table lists the configurable parameters of the Fluentd elasticsear
| `elasticsearch.buffer.overflowAction` | Elasticsearch Buffer over flow action | `block` |
| `env` | List of env vars that are added to the fluentd pods | `{}` |
| `fluentdArgs` | Fluentd args | `--no-supervisor -q` |
| `fluentdLogFormat` | Fluentd output log format in the default system.conf (either "text" or "json") | `text` |
| `secret` | List of env vars that are set from secrets and added to the fluentd pods | `[]` |
| `extraVolumeMounts` | Mount extra volume, required to mount ssl certificates when ES has tls enabled | `[]` |
| `extraVolumes` | Extra volume | `[]` |
| `fluentConfDir` | Specify where to mount fluentd location | `/etc/fluent/config.d` |
| `fluentConfDir` | Specify where to mount fluentd location | `/etc/fluent/config.d` |
| `hostLogDir.varLog` | Specify where fluentd can find var log | `/var/log` |
| `hostLogDir.dockerContainers` | Specify where fluentd can find logs for docker container | `/var/lib/docker/containers` |
| `hostLogDir.libSystemdDir` | Specify where fluentd can find logs for lib Systemd | `/usr/lib64` |
Expand Down
3 changes: 3 additions & 0 deletions charts/fluentd-elasticsearch/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ data:
system.conf: |-
<system>
root_dir /tmp/fluentd-buffers/
<log>
format {{ .Values.fluentdLogFormat }}
</log>
</system>
{{- end }}

Expand Down
5 changes: 5 additions & 0 deletions charts/fluentd-elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ elasticsearch:
# by example you can add -vv to launch with trace log
fluentdArgs: "--no-supervisor -q"

# Specifies the output format of fluentd's own log messages. Set to
# "json" to enable structured logging.
# See https://docs.fluentd.org/deployment/logging#log-format
fluentdLogFormat: "text"

# If you want to add custom environment variables, use the env dict
# You can then reference these in your config file e.g.:
# user "#{ENV['OUTPUT_USER']}"
Expand Down

0 comments on commit 0d23316

Please sign in to comment.