diff --git a/build/helm/templates/configmap.yaml b/build/helm/templates/configmap.yaml index 0517dac..250b698 100644 --- a/build/helm/templates/configmap.yaml +++ b/build/helm/templates/configmap.yaml @@ -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 ^"(?ERROR)","(?[^"]*)","(?[^"]*),(?