Cannot setup dashboards filebeat to kibana

Hi there,
I´m trying to setup kibana dashboard from filebeat but not working

Follow my test output:

elasticsearch: https://XX.XX.XX.XX:9200...
  parse url... OK
  connection...
    parse host... OK
    dns lookup... OK
    addresses: XX.XX.XX.XX
    dial up... OK
  TLS...
    security: server's certificate chain verification is enabled
    handshake... OK
    TLS version: TLSv1.3
    dial up... OK
  talk to server... OK
  version: 8.2.0
elasticsearch: https://XX.XX.XX.XX:9200...
  parse url... OK
  connection...
    parse host... OK
    dns lookup... OK
    addresses: XX.XX.XX.XX
    dial up... OK
  TLS...
    security: server's certificate chain verification is enabled
    handshake... OK
    TLS version: TLSv1.3
    dial up... OK
  talk to server... OK
  version: 8.2.0
elasticsearch: https://XX.XX.XX.XX:9200...
  parse url... OK
  connection...
    parse host... OK
    dns lookup... OK
    addresses: XX.XX.XX.XX
    dial up... OK
  TLS...
    security: server's certificate chain verification is enabled
    handshake... OK
    TLS version: TLSv1.3
    dial up... OK
  talk to server... OK
  version: 8.2.0

and the output trying to add the dashboards using filebeat setup -e:

Loading dashboards (Kibana must be running and reachable)
{"log.level":"info","@timestamp":"2022-05-18T20:28:53.407-0300","log.logger":"kibana","log.origin":{"file.name":"kibana/client.go","file.line":182},"message":"Kibana url: https://XX.XX.XX.XX:5601","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-05-18T20:28:53.440-0300","log.origin":{"file.name":"instance/beat.go","file.line":1038},"message":"Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to https://XX.XX.XX.XX:5601/api/status fails: fail to execute the HTTP GET request: Get \"https://XX.XX.XX.XX:5601/api/status\": x509: certificate has expired or is not yet valid: current time 2022-05-18T20:28:53-03:00 is after 2022-04-02T13:44:33Z. Response: .","service.name":"filebeat","ecs.version":"1.6.0"}

Can anyone help me on that??

Thanks for the attention.

Hello @francescouk

By seeing the "error" log level which you have provided the certificate has been expired on 2nd of April.

 certificate has expired or is not yet valid: current time 2022-05-18T20:28:53-03:00

if you would like to still achieve this, we can do two things

  1. Try renewing the new certificate - (Recommended way)
    (or)
  2. Turning off the ssl verification and changing protocol from https to http (Not Recommended way at all)

Hope this helps :slight_smile:

Keep Posted!!! Thanks !!!

Hi there,

I´m using elastic self signed certificate. Strange, just done 2 months ago. Anyway, which would be the best approach to renew using Elasticsearch-certutil?

@francescouk
Yes, if you are using self managed Elastic cluster. This document would help

cert

Hope , your issue has been address :slight_smile:

Keep posted!!! Thanks !!!

Hi there,

Done the update but still receiving errors while trying to connect kibana to setup the dashboards:

Loading dashboards (Kibana must be running and reachable)
{"log.level":"info","@timestamp":"2022-05-19T12:48:47.055-0300","log.logger":"kibana","log.origin":{"file.name":"kibana/client.go","file.line":182},"message":"Kibana url: https://XX.XX.XX.XX:5601","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-05-19T12:48:47.125-0300","log.origin":{"file.name":"instance/beat.go","file.line":1038},"message":"Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to https://XX.XX.XX.XX:5601/api/status fails: fail to execute the HTTP GET request: Get \"https://XX.XX.XX.XX:5601/api/status\": x509: certificate signed by unknown authority. Response: .","service.name":"filebeat","ecs.version":"1.6.0"}

Can you please have a look?

Thanks

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