# 401 Unauthorised error heartbeat

**URL:** <https://discuss.elastic.co/t/401-unauthorised-error-heartbeat/286056>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [October 6, 2021, 4:32pm UTC](https://discuss.elastic.co/t/401-unauthorised-error-heartbeat/286056 "2021-10-06T16:32:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spoo](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Spoo](https://discuss.elastic.co/u/Spoo)\
**Post date:** [October 6, 2021, 4:32pm UTC](https://discuss.elastic.co/t/401-unauthorised-error-heartbeat/286056/1 "2021-10-06T16:32:30Z")

</div>

Hi  
I have a question about Elasticsearch and kibana setup on my work account  
So I have setup elk stack on an AWS EC2 instance and an other ubuntu web server.  
I am working on self managed not cloud based.  
I have installed heartbeat on the ubuntu web server. When I look at kibana-\>Uptime I do see ubuntu server there but it shows the server is down, but that server is up and running. ![401 error|690x101]  
It gives an error 401 unauthorised .  
{"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security\_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}.  
But I have given Elasticsearch username and password in the config file.  
Could you please help me resolve this issue.

 ![401 error](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d92e645eacab07b64b5391fda5366859ca284663.png)

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [October 15, 2021, 3:22pm UTC](https://discuss.elastic.co/t/401-unauthorised-error-heartbeat/286056/2 "2021-10-15T15:22:14Z")

</div>

Hello,

Could you please share your config files please?

Cheers

---

<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:** [November 12, 2021, 3:22pm UTC](https://discuss.elastic.co/t/401-unauthorised-error-heartbeat/286056/3 "2021-11-12T15:22:29Z")

</div>

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