Code: Select all
grok {
match => ["message", "%{DATE} %{TIME} %{IPV4:ip} %{WORD:method} %{URIPATH:stem} %{NOTSPACE:uriquery} %{NUMBER:port} %{NOTSPACE:username} %{IPORHOST:clientip} %{NOTSPACE:useragent} %{NOTSPACE:referer} %{NUMBER:status} %{NUMBER:substatus} %{NUMBER:win32status} %{NUMBER:timetaken:int}"]
}
mutate {
replace => [ 'type', 'iis_log' ]
} If you're using additional/different W3C fields in your logs, you'll need to adjust the filter.