summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/tests/runtime/data/tail/parsers_multiline_json.conf
blob: 1ed1cfdf3f34aaa778e26a910a963824b2fcbb21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[PARSER]
   Name        json
   Format      json

[MULTILINE_PARSER]
   name          multiline-json-regex
   key_content   message
   type          regex
   parser        json
   flush_timeout 2000

   #
   # Regex rules for multiline parsing
   # ---------------------------------
   #
   # configuration hints:
   #
   #  - first state always has the name: start_state
   #  - every field in the rule must be inside double quotes
   #
   # rules |   state name  | regex pattern                  | next state
   # ------|---------------|--------------------------------------------
   rule      "start_state"   "/(Dec \d+ \d+\:\d+\:\d+)(.*)/"  "cont"
   rule      "cont"          "/^\s+at.*/"                     "cont"