Dropwizard请求日志的Logstash grok模式

时间:2014-08-06 22:59:53

标签: logstash dropwizard grok

我正在使用0.6.2版本的dropwizard,我想在Logstash上发布所有请求日志并对其进行一些分析。 LogStash具有apache日志的grok模式。 COMBINEDAPACHELOG

但是当我使用它时,我得到了一个grok解析失败。任何人都知道Dropwizard请求日志的grok模式是什么?

这些是我的一些请求日志

127.0.0.1 - - [06/Aug/2014:18:38:43 +0000] "GET /v1/stores?quality_filter=true&page_number=0&radius=50&lng=-81.21630272972303&items_per_page=100&lat=41.16857743673455 HTTP/1.1" 200 87 39 39
127.0.0.1 - - [06/Aug/2014:18:38:43 +0000] "GET /v1/stores?quality_filter=true&page_number=0&radius=50&lng=-83.2059536279733&items_per_page=100&lat=42.23786990368085 HTTP/1.1" 200 87 142 142
127.0.0.1 - - [06/Aug/2014:18:38:43 +0000] "GET /v1/stores?page_number=0&radius=50&lng=-4.211522201080072&items_per_page=100&lat=51.02020032242967 HTTP/1.1" 200 87 362 362
127.0.0.1 - - [06/Aug/2014:18:38:43 +0000] "GET /v1/stores?page_number=0&radius=50&lng=145.15730558&items_per_page=20&lat=-38.15366074&eligibility_cc=AU HTTP/1.1" 200 86 345 345
127.0.0.1 - - [06/Aug/2014:18:38:43 +0000] "GET /v1/stores?quality_filter=true&page_number=0&radius=50&lng=-81.21630957375716&items_per_page=100&lat=41.16861975744389 HTTP/1.1" 200 87 363 363
127.0.0.1 - - [06/Aug/2014:18:38:43 +0000] "GET /v1/stores?quality_filter=true&page_number=0&radius=50&lng=-119.1483695757371&items_per_page=100&lat=34.20897662590266 HTTP/1.1" 200 87 246 246

1 个答案:

答案 0 :(得分:1)

您只需使用COMMONAPACHELOG,因为您的日志文件中没有引用或使用者。