Skip to content

Commit

Permalink
Merge pull request #80 from observIQ/update-microsoft-iis-plugin
Browse files Browse the repository at this point in the history
Add support for IPv6 addresses and fix issue with multiline line_start_pattern.
  • Loading branch information
ericwholt authored Nov 5, 2020
2 parents b95134a + 0d2043b commit 4246bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/microsoft_iis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pipeline:
include:
- {{ $file_path }}
multiline:
line_start_pattern: \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} [\d+.]+
line_start_pattern: '\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} '
start_at: {{ $start_at }}
labels:
log_type: microsoft_iis
Expand All @@ -37,7 +37,7 @@ pipeline:

- id: microsoft_iis_parser
type: regex_parser
regex: '^(?P<timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) (?P<server_ip>[\d+.]+) (?P<request_method>[A-Z]+) (?P<uri_stem>[^ ]+) (?P<uri_query>[^ ]+) (?P<server_port>\d+) (?P<username>[^ ]+) (?P<client_ip>[\d+.]+) (?P<user_agent>[^ ]+) (?P<referer>[^ ]+) (?P<http_status>\d+) (?P<http_sub_status>\d+) (?P<win32_status>\d+) (?P<time_taken>\d+)'
regex: '^(?P<timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) (?P<server_ip>[\d\w\.:]+) (?P<request_method>[A-Z]+) (?P<uri_stem>[^ ]+) (?P<uri_query>[^ ]+) (?P<server_port>\d+) (?P<username>[^ ]+) (?P<client_ip>[\d\w\.:]+) (?P<user_agent>[^ ]+) (?P<referer>[^ ]+) (?P<http_status>\d+) (?P<http_sub_status>\d+) (?P<win32_status>\d+) (?P<time_taken>\d+)'
timestamp:
parse_from: timestamp
layout: '%Y-%m-%d %H:%M:%S'
Expand Down

0 comments on commit 4246bf1

Please sign in to comment.