Hi,
I'm trying to connect metric beat with elasticsearch, it says ( Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://IP:9200: Get http://IP:9200: dial tcp IP:9200: connect: connection refused]).
FYI, File-beat is working fine with the same server.
======================================
2018-12-13T15:04:05.329+0300 ERROR elasticsearch/elasticsearch.go:214 Error connecting to Elasticsearch at http://IP:9200: Get http://IP:9200: dial tcp IP:9200: connect: connection refused
2018-12-13T15:04:05.330+0300 INFO [monitoring] log/log.go:149 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":20,"time":{"ms":24}},"total":{"ticks":50,"time":{"ms":60},"value":0},"user":{"ticks":30,"time":{"ms":36}}},"info":{"ephemeral_id":"104009f2-44d6-4ce3-b253-d06fc7a71d36","uptime":{"ms":36}},"memstats":{"gc_next":4828048,"memory_alloc":2868584,"memory_total":8475216,"rss":21741568}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":4},"load":{"1":0,"15":0.05,"5":0.01,"norm":{"1":0,"15":0.0125,"5":0.0025}}}}}}
2018-12-13T15:04:05.330+0300 INFO [monitoring] log/log.go:150 Uptime: 36.671439ms
2018-12-13T15:04:05.330+0300 INFO [monitoring] log/log.go:127 Stopping metrics logging.
2018-12-13T15:04:05.330+0300 INFO instance/beat.go:358 metricbeat stopped.
2018-12-13T15:04:05.331+0300 ERROR instance/beat.go:743 Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://IP:9200: Get http://IP:9200: dial tcp IP:9200: connect: connection refused]
Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://IP:9200: Get http://IP:9200: dial tcp IP:9200: connect: connection refused]
Thanks
Regards,
Mohammed