Skip to content

Commit 0c52acc

Browse files
committed
docs: examples: multiline: convert examples from conf to yaml
Signed-off-by: Hank Leininger <hlein@korelogic.com>
1 parent 85e1ccc commit 0c52acc

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[MULTILINE_PARSER]
2-
name multiline-regex-test
3-
type regex
4-
# Regex rules for multiline parsing
1+
multiline_parsers:
2+
- name: multiline-regex-test
3+
type: regex
4+
#regex: rules for multiline parsing
55
# ---------------------------------
66
#
77
# configuration hints:
@@ -11,5 +11,11 @@
1111
#
1212
# rules | state name | regex pattern | next state name
1313
# --------|----------------|--------------------------------------------------
14-
rule "start_state" "/(Dec \d+ \d+\:\d+\:\d+)(.*)/" "cont"
15-
rule "cont" "/^\s+at.*/" "cont"
14+
rules:
15+
- state: start_state
16+
regex: '/(Dec \d+ \d+\:\d+\:\d+)(.*)/'
17+
next_state: cont
18+
19+
- state: cont
20+
regex: /^\s+at.*/
21+
next_state: cont
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[MULTILINE_PARSER]
2-
name multiline-regex-test
3-
type regex
4-
flush_timeout 1000
5-
# Regex rules for multiline parsing
1+
multiline_parsers:
2+
- name: multiline-regex-test
3+
type: regex
4+
flush_timeout: 1000
5+
#regex: rules for multiline parsing
66
# ---------------------------------
77
#
88
# configuration hints:
@@ -12,5 +12,11 @@
1212
#
1313
# rules | state name | regex pattern | next state name
1414
# --------|----------------|--------------------------------------------------
15-
rule "start_state" "/(Dec \d+ \d+\:\d+\:\d+)(.*)/" "cont"
16-
rule "cont" "/^\s+at.*/" "cont"
15+
rules:
16+
- state: start_state
17+
regex: '/(Dec \d+ \d+\:\d+\:\d+)(.*)/'
18+
next_state: cont
19+
20+
- state: cont
21+
regex: /^\s+at.*/
22+
next_state: cont

0 commit comments

Comments
 (0)