我可以使用 Splunk 分析 Rails 应用程序中的事件吗?
看看 Splunk,http://www.splunk.com,它看起来是一个非常好的平台,用于分析系统正在执行与用户正在执行的操作相关的操作。
提供了 Ruby on Rails 实现,但它似乎只提供传统分析。
是否有:
- 一种使用 Slunk 监视 Rails 应用程序代码中定义的事件的方法?
或者
- 更好的工具来完成这项工作?
谢谢!
Looking at Splunk, http://www.splunk.com, it looks like a very nice platform for analysing how a system is performing in relation to the actions users are taking.
A Ruby on Rails implementation is provided, but it would seem to only offer traditional analytics.
Is there either:
- A way to use Slunk to monitor events defined in the code of a rails app?
or
- A better tool for the job?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 ruby 生成的日志,没有特定于 ruby 的查询处理程序。当然可以通过
来构建一个Splunk 可以通过多种方式进行扩展。例如,很可能编写一个搜索过滤器,它可以缩小 ruby 中的事件集,解析 ruby 表达式。 splunk 搜索语言对于引号、反斜杠和管道有自己的想法,但文本的其余部分将取决于过滤器。然而,将搜索限制为包含子字符串的事件的核心性能优化目前只能在 splunk 搜索语言语法中实现。
也就是说,如果您的数据集非常小,并且您想要进行的分析范围有限,那么也许某些自定义 ruby 解决方案更接近您想要的。
There's no ruby-specific query handler for ruby generated logs. It's certainly possible to build one by
Splunk is extensible in various ways. For example, it would be pretty possible to author a search filter which can narrow the set of events in ruby, parsing a ruby expression. The splunk search language has its own ideas about quotation marks, backslashes, and pipes, but the rest of the text would be up to the filter. However, the core performance optimizations of limiting the search to events containing substrings is currently only possible in the splunk search language syntax.
That said, if your data set is very small, and the analysis you want to do limited in scope, then maybe some custom ruby solution is closer to what you want.
至于splunk,请查看answers.splunk.com,这是与rails相关的一个答案:
http://splunk-base.splunk.com/answers/8830/how-do-i-extract-key-value-来自 ruby-on-rails-logs 的对
As far as splunk, check out answers.splunk.com and here is one answer related to rails:
http://splunk-base.splunk.com/answers/8830/how-do-i-extract-key-value-pairs-from-ruby-on-rails-logs