Hitting error getting heartbeat from Elasticsearch with SSL

This as working fine vefore converting to https. I have tried a number of modifications but still stuck on getting this to work. Below is my error and heartbeat configuration

[2019-06-04T19:21:17,067][WARN ][o.e.h.AbstractHttpServerTransport] [rrc101-196516-elasticsearch-70test1] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=0.0.0.0/0.0.0.0:9200, remoteAddress=/35.185.109.39:50424}
io.netty.handler.codec.DecoderException: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 474554202f20485454502f312e310d0a486f73743a2033352e3139362e31382e32343a393230300d0a557365722d4167656e743a20476f2d687474702d636c69656e742f312e310d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a

  • type: http
    schedule: "@every 30s"
    urls: ["https://34.73.241.5:9200"]
    username: beats_system
    password: ********
    ssl:
    certificate_authorities: ['/home/ffoti/rrc101-196516-70tst.crt']
    verification_mode: none
    supported_protocols: ["TLSv1.0", "TLSv1.1", "TLSv1.2"]
    check.response.status: 200
    fields:
    environment: "rrc101-196516"
    hostname: rrc101-196516-elasticsearch-70test1
    service: elasticsearch

We resolved the ssl error but now there are no errors and heartbeat is still reporting Elasticsearch DOWN. Any Ideas?

  • type: http
    schedule: "@every 30s"
    urls: ["https://35.196.18.24:9200"]
    #check.response.status: 200
    check.request:
    method: GET
    check.response:

    status: 200

    json:
    - description: check status
    condition:
    equals:
    status: ok
    elasticsearch.username: remote_monitoring_user
    elasticsearch.password: *********
    ssl:
    certificate_authorities: "/etc/heartbeat/heartbeat.pem"
    verification_mode: full
    fields:
    environment: "rrc101-196516"
    hostname: rrc101-196516-elasticsearch-70test1
    service: elasticsearch

Resolved. There was a typo on username and password. Removed "elasticsearch." and heartbeat is working

1 Like

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