I am new to Grock filter tried with grok debugger working fine in it
but not able to create new fields all log data are in the message field
this is my configuration file.
#Windows Firewall
input {
beats {
port => 5044
}
}
filter {
if [fileset][module] == "iis" {
grok {
break_on_match => false
match log structure using grok
match => { "message" => "%{GREEDYDATA:Date} %{GREEDYDATA:Time} %{WORD:action} %{WORD:protocol} %{IP:source_ip} %{IP:destination_ip} %{INT:SrcPort} %{INT:DstPort} %{INT:Size} %{GREEDYDATA:Size}" }
}
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
manage_template => false
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug }
}