Logstash could not connet to influxdb

i want to use UDP port to write metric to influxdb. when i use 8086 ,it Operating normally。but when i change the port to 8089 .It
Will report an error.

my logstash config:

influxdb config:

[[udp]]
enabled = true
bind-address = ":8089"
database = "apigw_log"

error:

[2019-03-08T18:17:54,455][WARN ][logstash.outputs.influxdb] Connection Error while writing to InfluxDB {:exception=>#<InfluxDB::ConnectionError: Tried 3 times to reconnect but failed.>}
E, [2019-03-08T18:17:54.570000 #5173] ERROR -- InfluxDB: Failed to contact host 172.27.116.154: #<Errno::ECONNREFUSED: Connection refused - Connection refused> - retrying in 1s.
E, [2019-03-08T18:17:55.606000 #5173] ERROR -- InfluxDB: Failed to contact host 172.27.116.154: #<Errno::ECONNREFUSED: Connection refused - Connection refused> - retrying in 2s

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.