# Unable to create a monitoring\_user in Kibana using X-Pack

**URL:** https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351
**Category:** Kibana
**Created:** [November 8, 2016, 12:40pm UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351 "2016-11-08T12:40:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)
#### Post date: [November 8, 2016, 12:40pm UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/1 "2016-11-08T12:40:44Z")

</div>

Hi,

I have installed X-Pack and I created a user with roles kibana\_user, monitoring\_user set. When I login using the created credentials, I am getting the error below.

```
You are not authorized to access Monitoring. To use Monitoring, you need the privileges granted by both the `kibana_user` and `monitoring_user` roles.

If you are attempting to access a dedicated monitoring cluster, this might be because you are logged in as a user that is not configured on the monitoring cluster. 

```

I have set up a cluster in my machine with 2 mastereligible nodes. How can I fix this? How can I create a monitoring\_user who can access the monitoring part?

---

<div class="post-metadata">

### Author: ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)
#### Post date: [November 8, 2016, 12:46pm UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/2 "2016-11-08T12:46:41Z")

</div>

I am getting the same error in `elastic` superuser too.

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [November 8, 2016, 4:23pm UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/3 "2016-11-08T16:23:21Z")

</div>

Is the monitoring data on the same cluster as your production data, or do you have a separate monitoring cluster? If you have a separate monitoring cluster, then the monitoring user and/or superuser need to exist on the monitoring cluster with the same password as the production cluster.

If that's not the case, do you see any information about the security exception in the Elasticsearch logs?

---

<div class="post-metadata">

### Author: ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)
#### Post date: [November 9, 2016, 4:20am UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/4 "2016-11-09T04:20:45Z")

</div>

@tsullivan I have just a single machine.. Monitoring and data in same machine..

---

<div class="post-metadata">

### Author: ![bohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bohyun/32/10087_2.png) [@bohyun](https://discuss.elastic.co/u/bohyun)
#### Post date: [November 9, 2016, 4:56am UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/5 "2016-11-09T04:56:39Z")

</div>

Hi,

could you try and clear out your browser cache?

---

<div class="post-metadata">

### Author: ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)
#### Post date: [November 9, 2016, 6:15am UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/6 "2016-11-09T06:15:13Z")

</div>

@bohyun it worked. Thanks 🙂

---

<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: [December 7, 2016, 6:15am UTC](https://discuss.elastic.co/t/unable-to-create-a-monitoring-user-in-kibana-using-x-pack/65351/7 "2016-12-07T06:15:16Z")

</div>

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