# Kibana 7.2 display different heartbeat data to different users

**URL:** <https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573>\
**Category:** Kibana\
**Created:** [July 28, 2019, 3:56pm UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573 "2019-07-28T15:56:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccorn478](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@ccorn478](https://discuss.elastic.co/u/ccorn478)\
**Post date:** [July 28, 2019, 3:56pm UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/1 "2019-07-28T15:56:32Z")

</div>

Hi,  
I am trying to understand, how I can show different data to multiple users.  
Using heartbeat to insert uptime data for eg. 3 different urls.  
www1, www2, www3  
I want to show www1 to user1, but he should not see uptime of www2 or www3.  
Also I want as a superior user to be able to see all the data.  
Reading through the documentation didnt really bring me forward. Any suggestions, where I can look or how to solve this?  
Thanks 🙂

---

<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:** [July 29, 2019, 6:21pm UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/2 "2019-07-29T18:21:37Z")

</div>

You can set up document level security for different roles/users. This is done by defining a query for each role. [https://www.elastic.co/guide/en/elastic-stack-overview/7.2/document-level-security.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/document-level-security.html)

e.g.

```auto
POST /_security/role/some-role1
  "indices": [
    {
      "names": ["heartbeat-*"],
      "privileges": ["read"],
      "query": "{\"match\": {\"http.url\": \"www1\"}}"
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![ccorn478](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@ccorn478](https://discuss.elastic.co/u/ccorn478)\
**Post date:** [July 30, 2019, 7:51am UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/3 "2019-07-30T07:51:21Z")

</div>

Hello and thanks for the answer, unfortunately we need to solve this problem with features of the basic licence in 7.2  
How could this be achieved ?

---

<div class="post-metadata">

**Author:** ![parallelthought](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@parallelthought](https://discuss.elastic.co/u/parallelthought)\
**Post date:** [July 30, 2019, 10:12am UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/4 "2019-07-30T10:12:01Z")

</div>

You could either differentiate at the index level or create a dedicated space with filters of the dashboard being used to differentiate the data. The users will be mapped to respective spaces.

---

<div class="post-metadata">

**Author:** ![ccorn478](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@ccorn478](https://discuss.elastic.co/u/ccorn478)\
**Post date:** [July 30, 2019, 11:56am UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/5 "2019-07-30T11:56:01Z")

</div>

Will this filtering be save, so nobody can read other data, even if he knows where to look for it?

---

<div class="post-metadata">

**Author:** ![parallelthought](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@parallelthought](https://discuss.elastic.co/u/parallelthought)\
**Post date:** [July 31, 2019, 7:57pm UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/6 "2019-07-31T19:57:53Z")

</div>

If the data is indexed separately then it is possible to make sure that the users are restricted to a particular index using XPack Security.

If the both type of data are indexed in together then it is possible to give the users a dedicated access to each Space and then assign the role as a dashboard only user.

In both the cases, users will not be able to access data (apart from what they have been assigned) even if they knew how to search for it.

---

<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 28, 2019, 7:57pm UTC](https://discuss.elastic.co/t/kibana-7-2-display-different-heartbeat-data-to-different-users/192573/7 "2019-08-28T19:57:54Z")

</div>

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