added repo
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: loghouse-fluentbit-config
|
||||
namespace: {{ .Release.Namespace }}
|
||||
data:
|
||||
fluent-bit.conf: |
|
||||
[SERVICE]
|
||||
Flush 5
|
||||
Daemon Off
|
||||
Log_Level warn
|
||||
Parsers_File parsers.conf
|
||||
|
||||
[INPUT]
|
||||
Name tail
|
||||
Path /var/log/clickhouse-server/clickhouse-server.log
|
||||
Tag clickhouse.server
|
||||
Parser clickhouse_log
|
||||
Refresh_Interval 5
|
||||
Read_from_Head True
|
||||
DB /tmp/fluentbit-ch.db
|
||||
|
||||
[INPUT]
|
||||
Name tail
|
||||
Path /var/log/clickhouse-server/clickhouse-server.err.log
|
||||
Tag clickhouse.error
|
||||
Refresh_Interval 5
|
||||
Read_from_Head True
|
||||
DB /tmp/fluentbit-ch-err.db
|
||||
|
||||
[FILTER]
|
||||
Name modify
|
||||
Match *
|
||||
Add component clickhouse-query-audit
|
||||
Add k8s_cluster k8s-central-prd-ase1
|
||||
Add k8s_namespace prd-loghouse
|
||||
|
||||
[OUTPUT]
|
||||
Name stackdriver
|
||||
Match *
|
||||
resource global
|
||||
|
||||
parsers.conf: |
|
||||
[PARSER]
|
||||
Name clickhouse_log
|
||||
Format regex
|
||||
Regex ^(?<time>\d{4}\.\d{2}\.\d{2} \d{2}:\d{2}:\d{2}\.\d+) \[ (?<thread>\d+) \] \{(?<query_id>[^}]*)\} <(?<level>[^>]+)> (?<message>.*)$
|
||||
Time_Key time
|
||||
Time_Format %Y.%m.%d %H:%M:%S.%L
|
||||
Reference in New Issue
Block a user