# Kibana visualization filter

**URL:** <https://discuss.elastic.co/t/kibana-visualization-filter/141129>\
**Category:** Kibana\
**Created:** [July 23, 2018, 9:32am UTC](https://discuss.elastic.co/t/kibana-visualization-filter/141129 "2018-07-23T09:32:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamed\_Sidibe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohamed_sidibe/32/33629_2.png) [@Mohamed\_Sidibe](https://discuss.elastic.co/u/Mohamed_Sidibe)\
**Post date:** [July 23, 2018, 9:32am UTC](https://discuss.elastic.co/t/kibana-visualization-filter/141129/1 "2018-07-23T09:32:42Z")

</div>

Hello, I'm Sidibe and i'm new on ELK:

I'm an app developper, with my team we would like to know which version of our app is used by our client. so whenever a client log on we recover ( the version, userID and date) on the server, we then put those data in elasticsearch.  
We want to build a kibana visualization that shows the number of user by app version.  
we are having some trouble to build this kind of visualization.  
I have tried to filter X-Axis by app versions and Y-Axis by the count of user.  
the problem with is:  
for exemple if 10 users are on app version 2.0 and then change app version from 2.0 to 4.0, kibana will count 10 users on 2.0 and 10 users on 4.0.  
i'm struggling to tell it to just count an user for his latest version we have in elasticsearch.  
I need help to edit a correct filter to do that.  
Thank you.

---

<div class="post-metadata">

**Author:** ![kskubala](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@kskubala](https://discuss.elastic.co/u/kskubala)\
**Post date:** [July 23, 2018, 2:44pm UTC](https://discuss.elastic.co/t/kibana-visualization-filter/141129/3 "2018-07-23T14:44:28Z")

</div>

I guess you are sending your data in wrong way. You should update it instead of adding new documents.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Sidibe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohamed_sidibe/32/33629_2.png) [@Mohamed\_Sidibe](https://discuss.elastic.co/u/Mohamed_Sidibe)\
**Post date:** [July 23, 2018, 3:49pm UTC](https://discuss.elastic.co/t/kibana-visualization-filter/141129/4 "2018-07-23T15:49:12Z")

</div>

thank you for your response, as i said before i'm new on elk so sorry for my questions,  
Is it possible to write a script (kind of comparing the app version stocked in elasticsearch and the one in log data) telling elasticsearch to update data when the app version is different ?. (logs are sent to elasticsearch whenever client get logged).

thank you

---

<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 20, 2018, 3:49pm UTC](https://discuss.elastic.co/t/kibana-visualization-filter/141129/5 "2018-08-20T15:49:13Z")

</div>

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