Error importing Kibana dashboards:

Hello,

I am getting this error when executing heartbeat from the windows command line:
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get https://tstkibana.tstlifeint.tstpl01.net:5601/api/status: dial tcp 172.20.141.166:5601: connectex: No connection could be made because the target machine actively refused it.. Response: .

It seems as if heartbeat is issuing a GET to http://tstkibana.tstlifeint.tstpl01.net:5601/api/status, but that fails. I have DNS setup for kibana "tstkibana.tstlifeint.tstpl01.net" so the port seems to be the problem as I can navigate to https://tstkibana.tstlifeint.tstpl01.net/api/status in chrome and receive a 200 and json.

Any pointers would be helpful.

-Stephen

I think you need to set the setup.kibana.host option to http://tstkibana.tstlifeint.tstpl01.net, see here.

That is set.

Here is thr yml file:

heartbeat.monitors:
-
    type: http
    urls:
        - 'http://plempcorrws.tstlifeint.tstpl01.net/Correspondence'
    schedule: '@every 10s'

setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.dashboards.enabled: true
setup.dashboards.directory: '${path.home}/kibana'
setup.dashboards.beat: heartbeat
setup.dashboards.index: 'workflow-'
setup.template.enabled: true
setup.template.name: workflow
setup.template.pattern: 'workflow-
'
setup.kibana:
host: tstkibana.tstlifeint.tstpl01.net
protocol: https
ssl.enabled: true
ssl.certificate_authorities:
- certs/PL-ROOT-CA.crt
- certs/ITS-ISSUING01-CA.crt
ssl.certificate: certs/tstheartbeat.tstlifeint.tstpl01.net.crt
ssl.key: certs/tstheartbeat.tstlifeint.tstpl01.net.key
output.elasticsearch:
enabled: true
hosts:
- 'https://lidt20elsrch01.tstlifeint.tstpl01.net:9200'
- 'https://lidt20elsrch02.tstlifeint.tstpl01.net:9200'
- 'https://lidt20elsrch03.tstlifeint.tstpl01.net:9200'
- 'https://lidt20kibana01.tstlifeint.tstpl01.net:9200'
protocol: https
username: "
password: ''
index: 'workflow-heartbeat-%{[beat.version]}-%{+yyyy.MM.dd}'
ssl.enabled: true
ssl.certificate_authorities:
- certs/PL-ROOT-CA.crt
- certs/ITS-ISSUING01-CA.crt
ssl.certificate: certs/tstheartbeat.tstlifeint.tstpl01.net.crt
ssl.key: certs/tstheartbeat.tstlifeint.tstpl01.net.key
logging.to_files: true
logging.files:
path: 'D:\logs\heartbeat'
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch: null

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