sudo cscli collections install crowdsecurity/exchangeInstalls 10 parsers and 49 scenarios, via IIS - Generic Protection.
View Exchange - Bruteforce Protection →sudo cscli parsers install crowdsecurity/iis-logsThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
filter: "evt.Parsed.program == 'iis'"onsuccess: next_stagename: crowdsecurity/iis-logsdescription: "Parse IIS access logs"nodes:#W3C logs can come from the event log- filter: "evt.Meta.datasource_type == 'wineventlog' and evt.Parsed.EventID == '6200'"statics:- meta: source_ipexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='c-ip']")- meta: http_statusexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='sc-status']")- parsed: http_pathexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='cs-uri-stem']")- meta: http_pathexpression: evt.Parsed.http_path- target: evt.Parsed.http_argsexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='cs-uri-query']")- parsed: verbexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='cs-method']")- meta: http_verbexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='cs-method']")- meta: http_user_agentexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='csUser-Agent']")- meta: target_fqdnexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='s-sitename']") #not a FQDN, but close enough ?- target: evt.StrTimeexpression: XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='date']") + " " + XMLGetNodeValue(evt.Line.Raw, "/Event/EventData[1]/Data[@Name='time']")- target: evt.Parsed.requestexpression: evt.Meta.http_path + '?' + evt.Parsed.http_args- filter: "evt.Parsed.datasource_type != 'wineventlog'"grok:pattern: "%{TIMESTAMP_ISO8601:date} %{IP:server_ip} %{WORD:http_method} %{DATA:http_path} %{DATA:http_args} %{INT} %{DATA:remote_user} %{IP:client_ip} %{DATA:user_agent} %{DATA:referer} %{INT:status} %{INT:substatus} %{INT:win32_status} %{INT:duration}"apply_on: messagestatics:- target: evt.StrTimeexpression: evt.Parsed.date- meta: source_ipexpression: evt.Parsed.client_ip- meta: http_status
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
Parser for IIS default W3C logs.
Log file and event log are both supported.