# Kibana 8.2.3, When installed kibana it requires service access token for connection elastic search

**URL:** https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561
**Category:** Kibana
**Created:** [June 18, 2022, 11:05am UTC](https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561 "2022-06-18T11:05:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MaralErdene\_Tumursuh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maralerdene_tumursuh/32/73137_2.png) [@MaralErdene\_Tumursuh](https://discuss.elastic.co/u/MaralErdene_Tumursuh)
#### Post date: [June 18, 2022, 11:05am UTC](https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561/1 "2022-06-18T11:05:38Z")

</div>

I installed elastic and kibana 8.2.3 with Java 17 on ubuntu. Firstly I putted Elasticsearch.username, Elasticsearch.password. But it returns error below .

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/e/feb23569411da20ad8a8e8a9199817bf340bb8b9.jpeg)

Then i tried generate service account token like this.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a7cd60973347e7437beeb312f44abfa84290873e.jpeg)

Please, approach me what should i do?

Thanks in advance

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 18, 2022, 2:21pm UTC](https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561/2 "2022-06-18T14:21:25Z")

</div>

You need to pass a user and password in your curl request, this is what the response message is saying.

To create a token you need to pass the credentials of a user that has permissions to do that, your curl request does not have any user/password to authenticate in Elasticsearch.

Also, if you want to create a service account for kibana, you need to change `fleet-server` in your request to `kibana`.

You need something like this:

```auto
curl -X POST -u elastic:password "localhost:9200/_security/service/elastic/kibana/credential/token/token1?pretty"

```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 20, 2022, 12:55am UTC](https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561/3 "2022-06-20T00:55:25Z")

</div>

In future please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

### Author: ![MaralErdene\_Tumursuh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maralerdene_tumursuh/32/73137_2.png) [@MaralErdene\_Tumursuh](https://discuss.elastic.co/u/MaralErdene_Tumursuh)
#### Post date: [June 20, 2022, 1:35am UTC](https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561/4 "2022-06-20T01:35:33Z")

</div>

Hello @leandrojmp,

Thank you for your response. It solved my problem.

Hello @warkolm ,

All right, thank you

---

<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 18, 2022, 1:35am UTC](https://discuss.elastic.co/t/kibana-8-2-3-when-installed-kibana-it-requires-service-access-token-for-connection-elastic-search/307561/5 "2022-07-18T01:35:43Z")

</div>

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