【问题标题】:How to send file to riemann server?如何将文件发送到黎曼服务器?
【发布时间】:2014-06-02 02:24:17
【问题描述】:

我已经设置了 riemann 服务器,现在我想将日志文件发送到 riemann 服务器。我怎样才能做到这一点?我没有从互联网上找到任何有用的材料。

【问题讨论】:

    标签: clojure riemann


    【解决方案1】:

    您不会向 riemann 服务器发送文件,而是发送事件。您可能想查看riemann client libraries 周围的一些文档,了解如何发送事件的详细信息。

    (use 'riemann.client)
    (def c (tcp-client {:host "1.2.3.4"}))
    (send-event c {:service "foo" :state "ok"})
    

    可能还值得查看basic concepts page,它更详细地解释了 riemann 的含义。

    【讨论】:

      猜你喜欢
      • 2021-12-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-19
      • 2016-01-18
      • 2013-09-24
      • 2016-06-06
      • 2015-01-06
      相关资源
      最近更新 更多