Skip to content

Instantly share code, notes, and snippets.

@drbugfinder-work
Created February 9, 2024 22:57
Show Gist options
  • Save drbugfinder-work/a9979a730fef75242d5cb4058dc93757 to your computer and use it in GitHub Desktop.
Save drbugfinder-work/a9979a730fef75242d5cb4058dc93757 to your computer and use it in GitHub Desktop.
in_emitter parsers_multiline.conf
[MULTILINE_PARSER]
name multiline-regex-test
type regex
flush_timeout 1000
#
# 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" "/([A-Za-z]+ \d+ \d+\:\d+\:\d+)(.*)/" "cont"
rule "cont" "/^\s+at.*/" "cont"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment