已经在Windows core 2016 Server中安装并运行了Elasticsearch-6.6.0和kibana-6.6.0,并且它已经启动并正在运行,我不得不从Rabbitmq索引数据,因此下载并解压缩了logstash-6.0.0并制成了配置文件对于Rabbitmq如下
input {
rabbitmq {
arguments => { "x-ha-policy" => "all" }
host => "172.xx.xx.xx"
queue => "xx.flow.queue"
#durable => true
key => "flowtrack"
exchange => "xx.test.exchange"
threads => 120
exclusive => false
prefetch_count => 512
vhost => "/"
port => 5672
user => "usr"
password => "Pass@123"
}
}
output {
elasticsearch {
hosts => ["172.xx.xx.xx:9200"]
}
}
通过命令行对logtash进行如下操作
c:\logstash-6.0.0>bin\logstash -f config\rabbitmq.conf
但是它会引发如下错误
[2019-02-20T23:01:28,696][ERROR][logstash.inputs.rabbitmq ] RabbitMQ connection error, will retry. {:error_message=>"Connection to localhost:5672 refused", :exception=>"MarchHare::ConnectionRefused"}
[2019-02-20T23:01:28,696][ERROR][logstash.inputs.rabbitmq ] RabbitMQ connection error, will retry. {:error_message=>"Connection to localhost:5672 refused", :exception=>"MarchHare::ConnectionRefused"}
端口5672在主机中打开 让我知道我是否错过了导致此错误的任何配置。
预先感谢
答案 0 :(得分:0)
已发现问题,这是由于未启用路由。现在可以连接并建立索引了。
关于, Vinoth Kannan P