Skip to content

Commit 823d89c

Browse files
committed
try json parser
1 parent 5937f7e commit 823d89c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build/logcollector/fluentbit/fluentbit_mongo.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
[PARSER]
2+
Name json
3+
Format json
4+
Time_Key t.$date
5+
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
6+
17
[SERVICE]
28
Flush 1
39
Log_Level debug
410
Daemon off
5-
parsers_file json
11+
Parser json
612

713
[INPUT]
814
Name tail
915
Path ${LOG_DATA_DIR}/mongod.log
1016
Tag ${POD_NAMESPACE}.${POD_NAME}.mongod.log
1117
Refresh_Interval 5
1218
DB /tmp/flb_kube.db
13-
multiline.parser multiline-regex-test
19+
Parser json
1420
read_from_head true
1521
Path_Key file
1622

0 commit comments

Comments
 (0)