# Cannot setup dashboards filebeat to kibana

**URL:** https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [May 18, 2022, 11:43pm UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115 "2022-05-18T23:43:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![francescouk](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@francescouk](https://discuss.elastic.co/u/francescouk)
#### Post date: [May 18, 2022, 11:43pm UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115/1 "2022-05-18T23:43:10Z")

</div>

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

Follow my test output:

```auto
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:

```auto
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.

---

<div class="post-metadata">

### Author: ![sudhagar\_ramesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhagar_ramesh/32/105673_2.png) [@sudhagar\_ramesh](https://discuss.elastic.co/u/sudhagar_ramesh)
#### Post date: [May 19, 2022, 2:40am UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115/2 "2022-05-19T02:40:04Z")

</div>

Hello @francescouk

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

```auto
 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 🙂

Keep Posted!!! Thanks !!!

---

<div class="post-metadata">

### Author: ![francescouk](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@francescouk](https://discuss.elastic.co/u/francescouk)
#### Post date: [May 19, 2022, 3:00am UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115/3 "2022-05-19T03:00:09Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![sudhagar\_ramesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhagar_ramesh/32/105673_2.png) [@sudhagar\_ramesh](https://discuss.elastic.co/u/sudhagar_ramesh)
#### Post date: [May 19, 2022, 3:07am UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115/4 "2022-05-19T03:07:12Z")

</div>

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

[cert](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/update-node-certs-same.html)

> **[Configuring SSL, TLS, and HTTPS to secure Elasticsearch, Kibana, Beats, and...](https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash)**
>
> Feeling insecure about your Elastic Stack security? Run through these step-by-step instructions for setting up TLS encryption and https on Elasticsearch, Kibana, Logstash, and Beats to shore up your stack's defenses. Highly recommended for end-to-end...

Hope , your issue has been address 🙂

Keep posted!!! Thanks !!!

---

<div class="post-metadata">

### Author: ![francescouk](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@francescouk](https://discuss.elastic.co/u/francescouk)
#### Post date: [May 19, 2022, 3:51pm UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115/5 "2022-05-19T15:51:58Z")

</div>

Hi there,

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

```auto
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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 16, 2022, 3:52pm UTC](https://discuss.elastic.co/t/cannot-setup-dashboards-filebeat-to-kibana/305115/6 "2022-06-16T15:52:08Z")

</div>

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