mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 19:39:43 +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_PROMETHEUS_CONF'] || 'prometheus'}.conf"
|
||||
@include kubernetes.conf
|
||||
@include nextcloud.conf
|
||||
@include conf.d/*.conf
|
||||
@include filters.conf
|
||||
|
||||
|
|
@ -82,6 +83,22 @@ data:
|
|||
</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
|
||||
|
||||
<parse>
|
||||
@type json
|
||||
time_key time
|
||||
time_format %Y-%m-%dT%H:%M:%S%z
|
||||
</parse>
|
||||
</source>
|
||||
|
||||
kubernetes.conf: |
|
||||
<label @FLUENT_LOG>
|
||||
<match fluent.**>
|
||||
|
|
|
|||
|
|
@ -105,6 +105,9 @@ 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
|
||||
|
|
@ -116,3 +119,7 @@ spec:
|
|||
- name: config-volume
|
||||
configMap:
|
||||
name: fluentd-logging
|
||||
- name: nextcloud-data
|
||||
hostPath:
|
||||
path: /opt/nextcloud/pod
|
||||
type: Directory
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue