# Couldn't find Kibana verification code

**URL:** <https://discuss.elastic.co/t/couldnt-find-kibana-verification-code/314402>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [September 14, 2022, 11:15am UTC](https://discuss.elastic.co/t/couldnt-find-kibana-verification-code/314402 "2022-09-14T11:15:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sher\_Khan](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Sher\_Khan](https://discuss.elastic.co/u/Sher_Khan)\
**Post date:** [September 14, 2022, 11:15am UTC](https://discuss.elastic.co/t/couldnt-find-kibana-verification-code/314402/1 "2022-09-14T11:15:46Z")

</div>

**Using ELK Stack version 8.4.1**

When i entered `http://localhost:5601/` in the address bar following screens occur

 ![Screenshot from 2022-09-14 16-07-12](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe36ac66dd5865e193f12ec1480ad10ab93beb45.png)  
 ![Screenshot from 2022-09-14 15-53-06](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f713c73c3f6f195f77c4fa435350ee2338cc179.png)

First I generate an enrollment token by running below command then I pasted it in the enrollment token section after that I was asked to enter the verification code

```auto
sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

```

For verification code I run the following command

```auto
/usr/share/kibana/bin$ ./kibana-verification-code 

```

The output was

```auto
Couldn't find verification code.

If Kibana hasn't been configured yet, restart Kibana to generate a new code.

Otherwise, you can safely ignore this message and start using Kibana.

```

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [September 19, 2022, 2:24pm UTC](https://discuss.elastic.co/t/couldnt-find-kibana-verification-code/314402/2 "2022-09-19T14:24:22Z")

</div>

Hi @Sher_Khan. I believe the verification code is displayed in the Kibana server logs during start-up. Maybe try restarting Kibana and watch the server logs for a line like `Your verification code is: `.

---

<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:** [October 17, 2022, 2:25pm UTC](https://discuss.elastic.co/t/couldnt-find-kibana-verification-code/314402/3 "2022-10-17T14:25:06Z")

</div>

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