# Adding an index to Kibana

**URL:** https://discuss.elastic.co/t/adding-an-index-to-kibana/46085
**Category:** Kibana
**Created:** [April 1, 2016, 4:44pm UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085 "2016-04-01T16:44:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![michele\_crudele](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@michele\_crudele](https://discuss.elastic.co/u/michele_crudele)
#### Post date: [April 1, 2016, 4:44pm UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085/1 "2016-04-01T16:44:20Z")

</div>

Actually adding an index to kibana is a manual operation: Settings -\> Configure an index pattern.  
I would like to provide to my end users an already configured Kibana installation, with all the indexes they need avoiding any manual operation.  
Would that be possible? I mean, is there any command line or rest api to configure a new index pattern to Kibana?

I have the same need for visualizations and dashboards. I would like to avoid manual import of json files, installing them via command line / rest api.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![MarkOStewart](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@MarkOStewart](https://discuss.elastic.co/u/MarkOStewart)
#### Post date: [April 1, 2016, 7:57pm UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085/2 "2016-04-01T19:57:22Z")

</div>

Is your Kibana connected to Elasticsearch?  
If so run REST commands against Elasticsearch and insert the indices and documents there?  
The indices and documents will show in in Kibana.  
Kibana just reads indices from another source so you really need to set up a datafeed (Logstash, beats etc) or something webpage etc. to give data to an index in Elastic and then present in Kibana.

---

<div class="post-metadata">

### Author: ![michele\_crudele](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@michele\_crudele](https://discuss.elastic.co/u/michele_crudele)
#### Post date: [May 2, 2016, 11:52am UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085/3 "2016-05-02T11:52:42Z")

</div>

My Kibana is connected to Elasticsearch. However, to make an ES index visible to Kibana you have to configure it manually as I described in the original post. Same for dashboards/visualizations: the user has to import them manually into Kibana. What I'm asking for is a Kibana REST API that I can call for doing those operations programmatically, without the intervention of the end user.  
I know that I can write to the `.kibana` metadata ES index, but that's weird and error prone, that's the reason why I'm asking for a better way.

Thanks in advance, guys.

---

<div class="post-metadata">

### Author: ![MarkOStewart](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@MarkOStewart](https://discuss.elastic.co/u/MarkOStewart)
#### Post date: [May 12, 2016, 4:07pm UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085/4 "2016-05-12T16:07:47Z")

</div>

You should only have to configure an index once in Kibana if you use index patterns. An index pattern is an index name with a wild card like logstash\* will allow Kibana to see all new indices that start with logstash.

see the following for a how to.  
[https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html)

I hope this helps.  
MS

---

<div class="post-metadata">

### Author: ![michele\_crudele](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@michele\_crudele](https://discuss.elastic.co/u/michele_crudele)
#### Post date: [May 15, 2016, 10:35am UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085/5 "2016-05-15T10:35:56Z")

</div>

What is the part of my post that is not clear? The wildcard does not help.  
It's a manual operation and if you add more indexes matching the wildcard  
later, they are not taken automatically by kibana.

---

<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: [July 6, 2017, 1:53pm UTC](https://discuss.elastic.co/t/adding-an-index-to-kibana/46085/6 "2017-07-06T13:53:20Z")

</div>


