mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 15:59:45 +00:00
Parse nextcloud app log
This commit is contained in:
parent
2aa26b5a22
commit
11f516b7e8
2 changed files with 24 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ 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
|
||||||
|
|
||||||
|
|
@ -82,6 +83,22 @@ data:
|
||||||
</parse>
|
</parse>
|
||||||
</filter>
|
</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
|
||||||
|
|
||||||
|
<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,6 +105,9 @@ 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
|
||||||
|
|
@ -116,3 +119,7 @@ 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