Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure 如何将文件发送到riemann服务器?_Clojure_Riemann - Fatal编程技术网

Clojure 如何将文件发送到riemann服务器?

Clojure 如何将文件发送到riemann服务器?,clojure,riemann,Clojure,Riemann,我已经安装了riemann服务器,现在我想将日志文件发送到riemann服务器。我该怎么做?我没有从网上找到任何有用的资料 您不向riemann服务器发送文件,而是发送事件。您可能希望查看有关如何发送事件的详细信息的一些文档 (use 'riemann.client) (def c (tcp-client {:host "1.2.3.4"})) (send-event c {:service "foo" :state "ok"}) 也许还值得一看,这更详细地解释了黎曼是什么

我已经安装了riemann服务器,现在我想将日志文件发送到riemann服务器。我该怎么做?我没有从网上找到任何有用的资料

您不向riemann服务器发送文件,而是发送事件。您可能希望查看有关如何发送事件的详细信息的一些文档

(use 'riemann.client)
(def c (tcp-client {:host "1.2.3.4"}))
(send-event c {:service "foo" :state "ok"})
也许还值得一看,这更详细地解释了黎曼是什么