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.
9713453a53
...
1a8448b816
3 changed files with 3 additions and 38 deletions
3
flux.yml
3
flux.yml
|
|
@ -213,9 +213,6 @@ spec:
|
||||||
# Enable garbage collection
|
# Enable garbage collection
|
||||||
- --sync-garbage-collection
|
- --sync-garbage-collection
|
||||||
|
|
||||||
# Set log format to json
|
|
||||||
- --log-format=json
|
|
||||||
|
|
||||||
# Optional DNS settings, configuring the ndots option may resolve
|
# Optional DNS settings, configuring the ndots option may resolve
|
||||||
# nslookup issues on some Kubernetes setups.
|
# nslookup issues on some Kubernetes setups.
|
||||||
# dnsPolicy: "None"
|
# dnsPolicy: "None"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ data:
|
||||||
@include "#{ENV['FLUENTD_SYSTEMD_CONF'] || 'systemd'}.conf"
|
@include "#{ENV['FLUENTD_SYSTEMD_CONF'] || 'systemd'}.conf"
|
||||||
@include "#{ENV['FLUENTD_PROMETHEUS_CONF'] || 'prometheus'}.conf"
|
@include "#{ENV['FLUENTD_PROMETHEUS_CONF'] || 'prometheus'}.conf"
|
||||||
@include kubernetes.conf
|
@include kubernetes.conf
|
||||||
@include nextcloud.conf
|
|
||||||
@include conf.d/*.conf
|
@include conf.d/*.conf
|
||||||
@include filters.conf
|
@include filters.conf
|
||||||
|
|
||||||
|
|
@ -55,50 +54,26 @@ data:
|
||||||
disable.conf: ""
|
disable.conf: ""
|
||||||
|
|
||||||
filters.conf: |
|
filters.conf: |
|
||||||
<filter kubernetes.var.log.containers.nextcloud-** kubernetes.var.log.containers.echoserver-**>
|
<filter kubernetes.var.log.containers.nextcloud-**>
|
||||||
@type parser
|
@type parser
|
||||||
key_name log
|
key_name log
|
||||||
reserve_data true
|
reserve_data true
|
||||||
|
inject_key_prefix apache2.
|
||||||
<parse>
|
<parse>
|
||||||
@type apache2
|
@type apache2
|
||||||
</parse>
|
</parse>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<filter kubernetes.var.log.containers.hass-**>
|
<filter kubernetes.var.log.containers.hass-**>
|
||||||
@type parser
|
@type parser
|
||||||
key_name log
|
key_name log
|
||||||
reserve_data true
|
reserve_data true
|
||||||
|
inject_key_prefix hass.
|
||||||
<parse>
|
<parse>
|
||||||
@type regexp
|
@type regexp
|
||||||
expression /^(?<logtime>.*) (?<level>.*) \((?<thread>.*)\) \[(?<source>.*)\] (?<message>.*)$/
|
expression /^(?<logtime>.*) (?<level>.*) \((?<thread>.*)\) \[(?<source>.*)\] (?<message>.*)$/
|
||||||
</parse>
|
</parse>
|
||||||
</filter>
|
</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: |
|
kubernetes.conf: |
|
||||||
<label @FLUENT_LOG>
|
<label @FLUENT_LOG>
|
||||||
<match fluent.**>
|
<match fluent.**>
|
||||||
|
|
|
||||||
|
|
@ -105,9 +105,6 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /fluentd/etc
|
mountPath: /fluentd/etc
|
||||||
- name: nextcloud-data
|
|
||||||
mountPath: /opt/nextcloud/nextcloud.log
|
|
||||||
subPath: data/nextcloud.log
|
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
- name: varlog
|
- name: varlog
|
||||||
|
|
@ -119,7 +116,3 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: fluentd-logging
|
name: fluentd-logging
|
||||||
- name: nextcloud-data
|
|
||||||
hostPath:
|
|
||||||
path: /opt/nextcloud/pod
|
|
||||||
type: Directory
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue