Replies: 1 comment
-
Hi, I'm use this setting type: remap
inputs:
- iis_logs
source: | # \/ This flag makes regex multiline.
. |= parse_regex!(.message, r'(?m)^(?P<timestamp>\d+-\d+-\d+ \d+:\d+:\d+) (?P<sIp>\d+.\d+.\d+.\d+) (?P<method>\w+) (?P<csUri>\S+) (?P<csUriQuery>\S+) (?P<sPort>\d+) (?P<csUserName>\S+) (?P<cIp>\d+.\d+.\d+.\d+) (?P<csUA>\S+) (?P<csR>\S+) (?P<csStatus>\d+) (?P<csSubstatus>\d+) (?P<csWin32Status>\d+) (?P<timeTaken>\d+)') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given an IIS access log (below an excerpt, anonymized), what is the suggested way to parse this and have a message with all fields? Should I use
parse_regex!
, can you point me at any example?Beta Was this translation helpful? Give feedback.
All reactions