Skip to content

Instantly share code, notes, and snippets.

@adamlacombe
Created May 1, 2018 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamlacombe/768574dd7daccd1e90e7783c18f5285a to your computer and use it in GitHub Desktop.
Save adamlacombe/768574dd7daccd1e90e7783c18f5285a to your computer and use it in GitHub Desktop.
IIS log regex
(?P<timestamp>\S+ \S+) \S+ \S+ (?P<server_ip>\S+) (?P<method>GET|POST) (?P<url>.*?) \S+ (?P<port>\d+) - (?P<ip>\S+) (?P<http_version>\S+) (?P<extra>.*?) (?P<referrer>:- -|\S+) (?P<domain>\S+) (?P<status>\d+) .*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment