Skip to content

Commit 68d6e29

Browse files
committed
docs: parsers: multiline-parsing: general doc updates and cleanup
- fix classic config (.conf) examples to use Title_Case keys - fix malformed example timestamp Applies to #2510 Signed-off-by: Eric D. Schabell <eric@schabell.org>
1 parent 45b802d commit 68d6e29

2 files changed

Lines changed: 33 additions & 33 deletions

File tree

pipeline/parsers/configuring-parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Custom parsers support the following configuration parameters:
3333

3434
Time resolution and its format supported are handled by using the [strftime\(3\)](https://man7.org/linux/man-pages/man3/strftime.3.html) `libc` system function.
3535

36-
In addition, Fluent Bit extends its time resolution to support fractional seconds like `017-05-17T15:44:31**.187512963**Z`. The `%L` format option for `time_format` is provided as a way to indicate that content must be interpreted as fractional seconds.
36+
In addition, Fluent Bit extends its time resolution to support fractional seconds like `2017-05-17T15:44:31.187512963Z`. The `%L` format option for `time_format` is provided as a way to indicate that content must be interpreted as fractional seconds.
3737

3838
{% hint style="info" %}
3939

pipeline/parsers/multiline-parsing.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@ This is the primary Fluent Bit classic configuration file. It includes the `pars
140140

141141
```text
142142
[SERVICE]
143-
flush 1
144-
log_level info
145-
parsers_file parsers_multiline.conf
143+
Flush 1
144+
Log_Level info
145+
Parsers_File parsers_multiline.conf
146146
147147
[INPUT]
148-
name tail
149-
path test.log
150-
read_from_head true
151-
multiline.parser multiline-regex-test
148+
Name tail
149+
Path test.log
150+
Read_From_Head true
151+
Multiline.Parser multiline-regex-test
152152
153153
[OUTPUT]
154-
name stdout
155-
match *
154+
Name stdout
155+
Match *
156156
```
157157

158158
{% endtab %}
@@ -192,9 +192,9 @@ This second file defines a multiline parser for the classic configuration exampl
192192

193193
```text
194194
[MULTILINE_PARSER]
195-
name multiline-regex-test
196-
type regex
197-
flush_timeout 1000
195+
Name multiline-regex-test
196+
Type regex
197+
Flush_Timeout 1000
198198
#
199199
# Regex rules for multiline parsing
200200
# ---------------------------------
@@ -206,8 +206,8 @@ This second file defines a multiline parser for the classic configuration exampl
206206
#
207207
# rules | state name | regex pattern | next state
208208
# ------|---------------|--------------------------------------------
209-
rule "start_state" "/([a-zA-Z]+ \d+ \d+\:\d+\:\d+)(.*)/" "cont"
210-
rule "cont" "/^\s+at.*/" "cont"
209+
Rule "start_state" "/([a-zA-Z]+ \d+ \d+\:\d+\:\d+)(.*)/" "cont"
210+
Rule "cont" "/^\s+at.*/" "cont"
211211
```
212212

213213
{% endtab %}
@@ -323,25 +323,25 @@ This is the primary Fluent Bit classic configuration file. It includes the `pars
323323

324324
```text
325325
[SERVICE]
326-
flush 1
327-
log_level info
328-
parsers_file parsers_multiline.conf
326+
Flush 1
327+
Log_Level info
328+
Parsers_File parsers_multiline.conf
329329
330330
[INPUT]
331-
name tail
332-
path test.log
333-
read_from_head true
334-
multiline.parser multiline-regex-test
331+
Name tail
332+
Path test.log
333+
Read_From_Head true
334+
Multiline.Parser multiline-regex-test
335335
336336
[FILTER]
337-
name parser
338-
match *
339-
key_name log
340-
parser named-capture-test
337+
Name parser
338+
Match *
339+
Key_Name log
340+
Parser named-capture-test
341341
342342
[OUTPUT]
343-
name stdout
344-
match *
343+
Name stdout
344+
Match *
345345
```
346346

347347
{% endtab %}
@@ -387,9 +387,9 @@ This file defines a multiline parser for the classic example.
387387

388388
```text
389389
[MULTILINE_PARSER]
390-
name multiline-regex-test
391-
type regex
392-
flush_timeout 1000
390+
Name multiline-regex-test
391+
Type regex
392+
Flush_Timeout 1000
393393
#
394394
# Regex rules for multiline parsing
395395
# ---------------------------------
@@ -401,8 +401,8 @@ This file defines a multiline parser for the classic example.
401401
#
402402
# rules | state name | regex pattern | next state
403403
# ------|---------------|--------------------------------------------
404-
rule "start_state" "/([a-zA-Z]+ \d+ \d+\:\d+\:\d+)(.*)/" "cont"
405-
rule "cont" "/^\s+at.*/" "cont"
404+
Rule "start_state" "/([a-zA-Z]+ \d+ \d+\:\d+\:\d+)(.*)/" "cont"
405+
Rule "cont" "/^\s+at.*/" "cont"
406406
407407
[PARSER]
408408
Name named-capture-test

0 commit comments

Comments
 (0)