需要帮助配置rails4日志

时间:2015-06-19 20:38:53

标签: ruby-on-rails logging

我想分析一下我们正在使用的rails4应用程序的日志 - 使用请求日志分析器 - 到目前为止

Parsed lines:        1373                                                
Skipped lines:       1373                                                
Parsed requests:     0                                                   
Skipped requests:    0 
Warnings:            teaser_check_failed: 182791, no_current_request: 26155


There were no requests analyzed.

Parse warnings
--------------------------------------------------------------------------------
Parsable lines were encountered without a header line before it.

它会跳过所有行。我在配置中进行日志记录的唯一更改是在app / environment / production.rb中为子域(config.log_tags = [:subdomain])添加前缀。我尝试删除它,但仍然没有解析 下面是日志文件的显示方式示例,我正在使用此命令来解析它们:request-log-analyzer --parse-strategy assume-correct --format rails --file o production.log。仅供参考与puma和nginx一起运行。

有没有人知道我需要做些什么才能让日志成形,以便request-log-analyzer解析它们?

[kingscliff.adventist] Started GET "/site/Title_Banner_-_Children_s_Ministry.jpg" for 199.30.25.137 at 2015-06-20 03:49:29 +1000
[kingscliff.adventist] Processing by SitesController#show as JPEG
[kingscliff.adventist]   Parameters: {"path"=>"site/Title_Banner_-_Children_s_Ministry"}
[www] Started GET "/site_data/109/assets/0038/1971/Gender_Action_Guide_Combined.pdf" for 180.180.74.76 at 2015-06-20 03:49:29 +1000
[www.signsofthetimes]   Rendered /app/varticles.html.erb (37.7ms)
[www] Processing by SitesController#show as PDF
[www]   Parameters: {"path"=>"site/Gender_Action_Guide_Combined"}
[www.signsofthetimes]   Rendered shared/_css_and_js_includes_footer.html.erb (0.3ms)
[www.signsofthetimes] Completed 200 OK in 1765ms (Views: 1636.0ms | ActiveRecord: 100.2ms)
[sydneychinese.adventist] Started GET "/" for 23.229.34.148 at 2015-06-20 03:49:29 +1000
[www]   Rendered sites/disabled.html.erb (0.9ms)
[www] Filter chain halted as :current_site_disabled? rendered or redirected
[www] Completed 200 OK in 73ms (Views: 11.4ms | ActiveRecord: 2.0ms)
[sydneychinese.adventist] Processing by SitesController#show as HTML
[kingscliff.adventist] Completed 406 Not Acceptable in 121ms

0 个答案:

没有答案