# Is it possible to get the exact "size" of the facet term on Kibana

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-get-the-exact-size-of-the-facet-term-on-kibana/14213>\
**Category:** Elasticsearch\
**Created:** [November 1, 2013, 6:50am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-exact-size-of-the-facet-term-on-kibana/14213 "2013-11-01T06:50:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11132](https://avatars.discourse-cdn.com/v4/letter/1/c68b51/32.png) [@11132](https://discuss.elastic.co/u/11132)\
**Post date:** [November 1, 2013, 6:50am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-exact-size-of-the-facet-term-on-kibana/14213/1 "2013-11-01T06:50:09Z")

</div>

Hi all

Now I'm trying to get the size of the facet term and trying to display the  
result on Kibana

As I do:

curl -XGET "[http://localhost:9200/logstash-2013.10.31/\_search?pretty=true](http://localhost:9200/logstash-2013.10.31/_search?pretty=true)"  
-d '  
{  
"facets" : {  
"tags" : { "terms" : {"field" : "uid", _"size" : 3_} }  
}  
}  
'

The facets part returns:

"facets" : {  
"tags" : {  
"\_type" : "terms",  
"missing" : 34,  
"total" : 20,  
"other" : 4,  
"terms" : [ {  
"term" : "uid\_a",  
"count" : 9  
}, {  
"term" : "uid\_b",  
"count" : 4  
}, {  
"term" : "uid\_c",  
"count" : 3  
} ]  
}  
}

Actually there are 5 different uid but I set the size to 3 so it return the  
top 3 user with the most count.  
And what I want is the total uid that appear on my query.  
Is there any query that I can get the exact size, which is 5 in this case,  
of the specific field??  
What I'm trying to do is to count the active uid # of a time interval (say  
1day, 7days, 15days etc.) and create a graph on Kibana.  
Does anyone have the experience?  
Thanks a lot!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-exact-size-of-the-facet-term-on-kibana/14213/2 "2017-07-06T02:09:24Z")

</div>


