1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 20:59:42 +00:00

Compare commits

..

No commits in common. "9713453a53cf64767d26ca3e6b872b495fc0529e" and "1a8448b816a9057d1d8a54e47a1f4f5fb115fc58" have entirely different histories.

3 changed files with 3 additions and 38 deletions

View file

@ -213,9 +213,6 @@ spec:
# Enable garbage collection
- --sync-garbage-collection
# Set log format to json
- --log-format=json
# Optional DNS settings, configuring the ndots option may resolve
# nslookup issues on some Kubernetes setups.
# dnsPolicy: "None"

View file

@ -10,7 +10,6 @@ data:
@include "#{ENV['FLUENTD_SYSTEMD_CONF'] || 'systemd'}.conf"
@include "#{ENV['FLUENTD_PROMETHEUS_CONF'] || 'prometheus'}.conf"
@include kubernetes.conf
@include nextcloud.conf
@include conf.d/*.conf
@include filters.conf
@ -55,50 +54,26 @@ data:
disable.conf: ""
filters.conf: |
<filter kubernetes.var.log.containers.nextcloud-** kubernetes.var.log.containers.echoserver-**>
<filter kubernetes.var.log.containers.nextcloud-**>
@type parser
key_name log
reserve_data true
inject_key_prefix apache2.
<parse>
@type apache2
</parse>
</filter>
<filter kubernetes.var.log.containers.hass-**>
@type parser
key_name log
reserve_data true
inject_key_prefix hass.
<parse>
@type regexp
expression /^(?<logtime>.*) (?<level>.*) \((?<thread>.*)\) \[(?<source>.*)\] (?<message>.*)$/
</parse>
</filter>
<filter kubernetes.var.log.containers.flux-**>
@type parser
key_name log
reserve_data true
<parse>
@type json
</parse>
</filter>
nextcloud.conf: |
<source>
@type tail
@id in_tail_nextcloud_log
path /opt/nextcloud/nextcloud.log
pos_file /var/log/nextcloud.log.pos
tag nextcloud.log
read_from_head true
reserve_data true
<parse>
@type json
time_key time
time_format %Y-%m-%dT%H:%M:%S%z
</parse>
</source>
kubernetes.conf: |
<label @FLUENT_LOG>
<match fluent.**>

View file

@ -105,9 +105,6 @@ spec:
readOnly: true
- name: config-volume
mountPath: /fluentd/etc
- name: nextcloud-data
mountPath: /opt/nextcloud/nextcloud.log
subPath: data/nextcloud.log
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
@ -119,7 +116,3 @@ spec:
- name: config-volume
configMap:
name: fluentd-logging
- name: nextcloud-data
hostPath:
path: /opt/nextcloud/pod
type: Directory