Clojure 如何使用不同的端口将事件传递给riemann

Clojure 如何使用不同的端口将事件传递给riemann,clojure,logstash,riemann,Clojure,Logstash,Riemann,我正在尝试将我的Logstash事件加载到Riemann。使用默认设置时(默认端口5555/5556)。事件将毫无问题地传递给Riemann 当我尝试使用自定义端口运行Riemann时,事件不会传递给Riemann。下面是我正在使用的配置详细信息 Riemann配置文件: (tcp-server {:host "127.0.0.1" :port 5552}) riemann{ host=> localhost port => 5552

我正在尝试将我的
Logstash
事件加载到
Riemann
。使用默认设置时(默认端口
5555/5556
)。事件将毫无问题地传递给Riemann

当我尝试使用自定义端口运行Riemann时,事件不会传递给Riemann。下面是我正在使用的配置详细信息

Riemann配置文件:

(tcp-server {:host "127.0.0.1" :port 5552})
riemann{
            host=> localhost
            port => 5552 
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
(let [host "127.0.0.1"]
  (tcp-server {:host host})
  (udp-server {:host host})
  (ws-server  {:host host}))
riemann{
            host=> localhost
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
日志存储文件:

(tcp-server {:host "127.0.0.1" :port 5552})
riemann{
            host=> localhost
            port => 5552 
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
(let [host "127.0.0.1"]
  (tcp-server {:host host})
  (udp-server {:host host})
  (ws-server  {:host host}))
riemann{
            host=> localhost
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
我已经检查了端口,它已经启动并运行,但我不知道为什么该事件没有通过自定义端口触发到riemann

我已经检查了riemann的日志我得到了以下信息

INFO [2016-01-13 06:57:48,307] main - riemann.bin - PID 10423
INFO [2016-01-13 06:57:48,606] clojure-agent-send-off-pool-2 - riemann.transport.tcp - TCP server 127.0.0.1 5552 online
INFO [2016-01-13 06:57:48,607] main - riemann.core - Hyperspace core online
以下配置工作正常

Riemann配置文件:

(tcp-server {:host "127.0.0.1" :port 5552})
riemann{
            host=> localhost
            port => 5552 
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
(let [host "127.0.0.1"]
  (tcp-server {:host host})
  (udp-server {:host host})
  (ws-server  {:host host}))
riemann{
            host=> localhost
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
日志存储文件:

(tcp-server {:host "127.0.0.1" :port 5552})
riemann{
            host=> localhost
            port => 5552 
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
(let [host "127.0.0.1"]
  (tcp-server {:host host})
  (udp-server {:host host})
  (ws-server  {:host host}))
riemann{
            host=> localhost
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }
我不知道我是否缺少任何附加设置


提前感谢

以上设置现在运行良好。我重新启动了我的服务器和Riemann服务器,之后事件开始从Logstash流入Riemann,没有任何问题

我希望它可能会帮助一些人,谁是试图使用黎曼自定义端口