我可以使用 Splunk 分析 Rails 应用程序中的事件吗?

发布于 2024-11-09 01:58:54 字数 301 浏览 1 评论 0原文

看看 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哀由 2024-11-16 01:58:54

对于 ruby​​ 生成的日志,没有特定于 ruby​​ 的查询处理程序。当然可以通过

  • 定义如何从 ruby​​ 样式生成的日志中获取字段(如上面链接)
  • 定义如何将所需的语法转换为 splunk 的搜索语言(对于该查询“sign_upreferer=bla”来说可能是这样)

来构建一个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

  • Defining how to acquire the fields from ruby-style generated logs (as linked above)
  • Defining how to translate your desired syntax to splunk's search language, which would be probably, for that query "sign_up referer=bla"

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.

孤星 2024-11-16 01:58:54

至于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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文