简体   繁体   English

如何使用其他端口将事件传递给riemann

[英]How to pass event to riemann using different port

I am trying to load my Logstash event to Riemann . 我正在尝试将Logstash事件加载到Riemann when I am using the default setup(default port 5555/5556 ). 当我使用默认设置(默认端口5555/5556 )时。 Events are getting passed to Riemann without any issues. 活动没有任何问题地传递给了黎曼。

When I try to run the Riemann using custom port, the events are not getting passed to Riemann. 当我尝试使用自定义端口运行Riemann时,事件未传递给Riemann。 Below are my config details which I am using, 以下是我正在使用的配置详细信息,

Riemann config file: 黎曼配置文件:

(tcp-server {:host "127.0.0.1" :port 5552})

Logstash File: Logstash文件:

riemann{
            host=> localhost
            port => 5552 
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }

I have checked the port also it was up and running but I dont know why the event was not getting triggered to riemann with custom port. 我已经检查了端口,它也已启动并正在运行,但是我不知道为什么自定义端口未将事件触发给riemann。

I have checked the riemann logs I got the following message 我检查了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

The following config was working fine 以下配置工作正常

Riemann config file: 黎曼配置文件:

(let [host "127.0.0.1"]
  (tcp-server {:host host})
  (udp-server {:host host})
  (ws-server  {:host host}))

Logstash File: Logstash文件:

riemann{
            host=> localhost
            riemann_event =>  {
                        "service" => "sys_log"                                              
                        "metric" => "%{metric}"
                        "ttl" => "%{ttl}"                       
                      }         
        }

I don't if I am missing any additional setting. 如果缺少任何其他设置,我不会。

Thanks in advance 提前致谢

The above setup just working fine now. 上面的设置现在工作正常。 I have restarted my server and Riemann server, after that events are started flowing into Riemann from Logstash without any issues. 在事件开始从Logstash流入Riemann且没有任何问题之后,我重新启动了我的服务器和Riemann服务器。

I hope it might help someone, who is trying to use custom port for Riemann 我希望这对尝试为Riemann使用自定义端口的人有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM