# Beginner help: Elasticsearch -\> Kibana || GoLang

**URL:** <https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282>\
**Category:** Elasticsearch\
**Created:** [July 2, 2018, 9:50pm UTC](https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282 "2018-07-02T21:50:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sairajes](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@sairajes](https://discuss.elastic.co/u/sairajes)\
**Post date:** [July 2, 2018, 9:50pm UTC](https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282/1 "2018-07-02T21:50:03Z")

</div>

I am trying to create a new index using go. Here's what I have right now (very simple) :

```
createindex, err := client.CreateIndex("test_ind").BodyString(mapping).Do(ctx)
	if err != nil {
		// Handle Error
		panic(err)
	}
	if !createindex.Acknowledged {
		//Not acknowledged
	}

```

When I search for indexes with my code, the new index "test\_ind" appears, yet I am not able to see it on kibana. Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [July 2, 2018, 11:32pm UTC](https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282/2 "2018-07-02T23:32:18Z")

</div>

> [@sairajes](#):
>
> yet I am not able to see it on kibana. Any help is appreciated!

If you go to Dev Tools \> Console in Kibana and run

```auto
GET _cat/indices

```

Is the index listed in the response?

I _suspect_ you're referring to not seeing it in the Discover menu. For it to appear here, you need to [set up an Index Pattern for it.](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html)

---

<div class="post-metadata">

**Author:** ![sairajes](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@sairajes](https://discuss.elastic.co/u/sairajes)\
**Post date:** [July 3, 2018, 6:38pm UTC](https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282/3 "2018-07-03T18:38:23Z")

</div>

I do see it when I run `GET _cat/indices` however when I go to management in kibana and try to define my index pattern, it is not showing up

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [July 4, 2018, 12:41am UTC](https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282/4 "2018-07-04T00:41:37Z")

</div>

> [@sairajes](#):
>
> when I go to management in kibana and try to define my index pattern, it is not showing up

There's one of two reasons for this

1. The index pattern defined does not match any indices. You can check this by using the **exact name** of the index you are looking for

2. The index does not contain any documents and therefore a mapping that Kibana can use. You can check this by running

---

<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:** [August 1, 2018, 12:41am UTC](https://discuss.elastic.co/t/beginner-help-elasticsearch-kibana-golang/138282/5 "2018-08-01T00:41:40Z")

</div>

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