Skip to content

Instantly share code, notes, and snippets.

@bendalby82
Created September 29, 2020 14:43
Show Gist options
  • Save bendalby82/1402de69a6898cf522a182d851515172 to your computer and use it in GitHub Desktop.
Save bendalby82/1402de69a6898cf522a182d851515172 to your computer and use it in GitHub Desktop.
Grok rule to parse IIS log file format (a fixed ASCII text-based format that cannot be customized)
%{IP:client_ip},%{SPACE}%{NOTSPACE:username},%{SPACE}%{DATE_US:date},%{SPACE}%{TIME:time},%{SPACE}%{WORD:service},%{SPACE}%{HOSTNAME:server_name},%{SPACE}%{IP:server_ip},%{SPACE}%{INT:time_taken_ms},%{SPACE}%{INT:client_bytes_sent},%{SPACE}%{INT:server_bytes_sent},%{SPACE}%{INT:http_status_code},%{SPACE}%{INT:windows_status_code},%{SPACE}%{WORD:http_request_verb},%{SPACE}%{URIPATH:http_verb_target},%{SPACE}%{NOTSPACE:http_parameters},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment