I'm getting the illegal_argument_exception error when logstash handles my apache events. Here is the error:
{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"15/Feb/2016:14:56:59 -0500\" is malformed at \"/Feb/2016:14:56:59 -0500\""}}}}, :level=>:warn}
Here is my apache filter:
filter {
if [fields][type] == "apache" {
grok {
patterns_dir => ["/etc/logstash/custom_patterns.txt"]
match => ["message", "%{COMMONAPACHELOG}" ]
}
date {
locale => "en"
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
}
A Sample date formate from my apache log is 15/Feb/2016:14:53:54 -0500