# Grouping/filtering host servers

**URL:** <https://discuss.elastic.co/t/grouping-filtering-host-servers/281030>\
**Category:** Kibana\
**Created:** [August 11, 2021, 10:06am UTC](https://discuss.elastic.co/t/grouping-filtering-host-servers/281030 "2021-08-11T10:06:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garry](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@Garry](https://discuss.elastic.co/u/Garry)\
**Post date:** [August 11, 2021, 10:06am UTC](https://discuss.elastic.co/t/grouping-filtering-host-servers/281030/1 "2021-08-11T10:06:08Z")

</div>

I have a situation where the I have a variety of hostnames for each client.

E.g.  
Client 1: host1, host2, host3  
Client 2: host4, host5, host6, host7

What would be the most effective way to group these client machines together in order to filter on them?

---

<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:** [August 11, 2021, 10:09am UTC](https://discuss.elastic.co/t/grouping-filtering-host-servers/281030/2 "2021-08-11T10:09:08Z")

</div>

You could setup pinned filters at the top of the dashboard with custom naming.  
Otherwise consider attaching the client name to the event as well.

---

<div class="post-metadata">

**Author:** ![Garry](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@Garry](https://discuss.elastic.co/u/Garry)\
**Post date:** [August 11, 2021, 10:14am UTC](https://discuss.elastic.co/t/grouping-filtering-host-servers/281030/3 "2021-08-11T10:14:29Z")

</div>

Thanks for the prompt reply Mark. When you say 'attach the client name to the event'  
What do you mean?  
For example i have metricbeats sitting on all these servers, so would I go about adding a new value to push through, e.g. projectcode?

---

<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:** [August 12, 2021, 9:48am UTC](https://discuss.elastic.co/t/grouping-filtering-host-servers/281030/4 "2021-08-12T09:48:24Z")

</div>

If the Beat is on a server then you can attach tags to each event, this could be the client name for eg.

---

<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:** [September 9, 2021, 9:48am UTC](https://discuss.elastic.co/t/grouping-filtering-host-servers/281030/5 "2021-09-09T09:48:51Z")

</div>

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