Hi,
I am using logstash 1.5.0 as indexer to filter apache access logs.
I use match => { "message" => "%{COMMONAPACHELOG}" } in my groke filter.
Sample log is :
xx.xx.xx.xxx - - [24/Feb/2016:07:45:54 +0200] "GET /serviceprovider/id/101 HTTP/1.1" 500 2267 28
JSON is:
{ "_index": "logstash-2016.02.24", "_type": "access-logs", "_id": "AVMScwRBC7tfwD5zOg5k", "_score": null, "_source": { "message": "xx.xx.xx.xxx - - [24/Feb/2016:07:45:54 +0200] \"GET /serviceprovider/id/101 HTTP/1.1\" 500 2267 28", "@version": "1", "@timestamp": "2016-02-24T08:44:00.664Z", "type": "access-logs", "host": "HostName", "path": "localhost-access.log", "clientip": "xx.xx.xx.xxx", "ident": "-", "auth": "-", "timestamp": "24/Feb/2016:07:45:54 +0200", "verb": "GET", "request": "/serviceprovider/id/101", "httpversion": "1.1", "response": "500", "bytes": "2267" }, "fields": { "@timestamp": [ 1456303440664 ] }, "sort": [ 1456303440664 ] }
I am expecting response time which is th elast field should be splited and added in json docuemnt, but it doesn't.
Also there is not any _grokeParseFailure error.
Please guide which format should be used instead of COMMONAPACHELOG
br,
Sunil Chaudhari