# Certificates between Filebeat and Kibana for Filebeat to do setup.dashboards.enabled: true

**URL:** https://discuss.elastic.co/t/certificates-between-filebeat-and-kibana-for-filebeat-to-do-setup-dashboards-enabled-true/161904
**Category:** Kibana
**Created:** [December 21, 2018, 11:06pm UTC](https://discuss.elastic.co/t/certificates-between-filebeat-and-kibana-for-filebeat-to-do-setup-dashboards-enabled-true/161904 "2018-12-21T23:06:09Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![RussellBateman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russellbateman/32/34928_2.png) [@RussellBateman](https://discuss.elastic.co/u/RussellBateman)
#### Post date: [January 4, 2019, 2:02pm UTC](https://discuss.elastic.co/t/certificates-between-filebeat-and-kibana-for-filebeat-to-do-setup-dashboards-enabled-true/161904/4 "2019-01-04T14:02:54Z")

</div>

Well, back from the holidays, this is what I now think. I hope this comment helps someone else.

Especially since our multiple Filebeat containers are running potentially (very likely) on different hosts, we don't want to use _filebeat.yml_ to install dashboards in Kibana. Instead, we'll do it in our greater, ELK container. Right now, for instance, we're using the _saved-object_ API in Kibana to preinstall our index pattern ("filebeat-\*") and we'll find a similar solution for any dashboard we choose to deploy:

**_preinstall-index-pattern.sh_** :

```
#!/bin/sh
# Preinstall index pattern "filebeat-*" for Kibana's use:
curl -X POST \
  "http://localhost:5601/api/saved_objects/index-pattern/filebeat-pattern" \
  --header 'kbn-xsrf: true' \
  --header 'Content-Type: application/json' \
  --data '\
    {\
      "attributes" :\
      {\
        "title" : "filebeat-*",\
        "timeFieldName" : "@timestamp",\
        "notExpandable" : true\
      }\
    }'

```

This works; we don't need keys and certificates, etc., though in terms of automatic installation, I don't yet know if we're going to have to jury-rig it using `ENTRYPOINT` in _Dockerfile_ or find some other way to set it off after Kibana's API is up.

---

_[View the full topic](https://discuss.elastic.co/t/certificates-between-filebeat-and-kibana-for-filebeat-to-do-setup-dashboards-enabled-true/161904)._
