Correct cm for loki
This commit is contained in:
@@ -17,6 +17,22 @@ data:
|
||||
Skip_Long_Lines On
|
||||
Refresh_Interval 5
|
||||
|
||||
[INPUT]
|
||||
Name tail
|
||||
Tag error_logs
|
||||
Path /usr/lib/serverHome/WEB-INF/lucee-server/context/logs/application.log
|
||||
Refresh_Interval 5
|
||||
Mem_Buf_Limit 100MB
|
||||
Skip_Long_Lines Off
|
||||
Read_from_Head On
|
||||
multiline.parser multiline-regex-lucee
|
||||
|
||||
[FILTER]
|
||||
Name parser
|
||||
Match error_logs
|
||||
Key_name log
|
||||
Parser lucee_errorlog_parser
|
||||
|
||||
[FILTER]
|
||||
Name record_modifier
|
||||
Match *
|
||||
@@ -42,9 +58,8 @@ data:
|
||||
Name loki
|
||||
Match *
|
||||
Host 10.96.52.75
|
||||
labels job={{ .Chart.Name }}-fluentbit-{{ .Values.stand }},$kubernetes['pod_name'],$kubernetes['namespace_name'],$kubernetes['host'],$kubernetes['container_name']
|
||||
labels job={{ .Chart.Name }}-fluentbit-{{ .Values.stand }}
|
||||
port 3100
|
||||
auto_kubernetes_labels on
|
||||
|
||||
[OUTPUT]
|
||||
Name stdout
|
||||
@@ -111,4 +126,19 @@ data:
|
||||
Time_Key time
|
||||
Time_Format %b %d %H:%M:%S
|
||||
|
||||
[PARSER]
|
||||
Name lucee_errorlog_parser
|
||||
Format regex
|
||||
Regex ^"(?<severity>ERROR)","(?<thread_id>[^"]*)","(?<date>[^"]*),(?<time>[^"]*)","(?<application>[^"]*)","(?<message>[^"]*)"
|
||||
Time_Key date
|
||||
Time_Format %d/%m/%Y
|
||||
|
||||
[MULTILINE_PARSER]
|
||||
name multiline-regex-lucee
|
||||
type regex
|
||||
flush_timeout 1000
|
||||
|
||||
rule "start_state" "/^\"ERROR\".*$/" "cont"
|
||||
rule "cont" "/^\s+.*$/" "cont"
|
||||
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user