@@ -23,46 +23,68 @@ data:
23
23
Log_Level info
24
24
Daemon off
25
25
Parsers_File parsers.conf
26
-
26
+
27
27
@INCLUDE inputs.conf
28
28
@INCLUDE filters.conf
29
29
@INCLUDE outputs.conf
30
30
31
31
inputs.conf : |
32
+ {{- if .Values.logging.trackFiles.errorLogs }}
32
33
[INPUT]
33
34
Name tail
34
35
Path {{ .Values.persistence.mountPath }}/Logs/*Error*
35
36
Read_from_head true
36
37
Tag kube.marklogic.logs.error
37
38
Path_Key path
39
+ {{- end }}
38
40
41
+ {{- if .Values.logging.trackFiles.accessLogs }}
39
42
[INPUT]
40
43
Name tail
41
44
Path {{ .Values.persistence.mountPath }}/Logs/*Access*
42
45
Read_from_head true
43
46
tag kube.marklogic.logs.access
44
47
Path_Key path
45
-
48
+ {{- end }}
49
+
50
+ {{- if .Values.logging.trackFiles.requestLogs }}
46
51
[INPUT]
47
52
Name tail
48
53
Path {{ .Values.persistence.mountPath }}/Logs/*Request*
49
54
Read_from_head true
50
55
tag kube.marklogic.logs.request
51
56
Path_Key path
52
-
57
+ {{- end }}
58
+
59
+ {{- if .Values.logging.trackFiles.crashLogs }}
53
60
[INPUT]
54
61
Name tail
55
62
Path {{ .Values.persistence.mountPath }}/Logs/CrashLog.txt
56
63
Read_from_head true
57
64
tag kube.marklogic.logs.crash
58
65
Path_Key path
59
-
66
+ {{- end }}
67
+
68
+ {{- if .Values.logging.trackFiles.auditLogs }}
60
69
[INPUT]
61
70
Name tail
62
71
Path {{ .Values.persistence.mountPath }}/Logs/AuditLog.txt
63
72
Read_from_head true
64
73
tag kube.marklogic.logs.audit
65
74
Path_Key path
75
+ {{- end }}
76
+
77
+ outputs.conf : |
78
+ # Example output config for ElasticSearch output
79
+ # [OUTPUT]
80
+ # Name es
81
+ # Match *
82
+ # Host {{ .Values.logging.host }}
83
+ # Port {{ .Values.logging.port }}
84
+ # HTTP_User {{ .Values.logging.username }}
85
+ # HTTP_Passwd {{ .Values.logging.password }}
86
+ # Configure desired output below, documentation on how to set up output can be found here
87
+ # https://docs.fluentbit.io/manual/pipeline/outputs
66
88
67
89
filters.conf : |
68
90
# Enrich Logs
71
93
Match *
72
94
Add pod ${POD_NAME}
73
95
Add namespace {{ .Release.Namespace }}
74
-
96
+
75
97
[FILTER]
76
98
Name modify
77
99
Match kube.marklogic.logs.error
86
108
Name modify
87
109
Match kube.marklogic.logs.request
88
110
Add tag kube.marklogic.logs.request
89
-
111
+
90
112
[FILTER]
91
113
Name modify
92
114
Match kube.marklogic.logs.audit
96
118
Name modify
97
119
Match kube.marklogic.logs.crash
98
120
Add tag kube.marklogic.logs.crash
99
-
121
+
100
122
# Parse Logs
101
123
[FILTER]
102
124
Name parser
@@ -111,23 +133,13 @@ data:
111
133
Key_Name log
112
134
Parser access_parser
113
135
Reserve_Data On
114
-
136
+
115
137
[FILTER]
116
138
Name parser
117
139
Match kube.marklogic.logs.request
118
140
Key_Name log
119
141
Parser json_parser
120
142
Reserve_Data On
121
-
122
- outputs.conf : |
123
- # Configure export to logging backend
124
- [OUTPUT]
125
- Name es
126
- Match *
127
- Host {{ .Values.logging.host }}
128
- Port {{ .Values.logging.port }}
129
- HTTP_User {{ .Values.logging.username }}
130
- HTTP_Passwd {{ .Values.logging.password }}
131
143
132
144
parsers.conf : |
133
145
[PARSER]
0 commit comments