# Extracting unique labels in the field and wordcount

**URL:** <https://discuss.elastic.co/t/extracting-unique-labels-in-the-field-and-wordcount/332567>\
**Category:** Kibana\
**Created:** [May 4, 2023, 2:09pm UTC](https://discuss.elastic.co/t/extracting-unique-labels-in-the-field-and-wordcount/332567 "2023-05-04T14:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama\_Krishna2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rama_krishna2/32/118451_2.png) [@Rama\_Krishna2](https://discuss.elastic.co/u/Rama_Krishna2)\
**Post date:** [May 4, 2023, 2:09pm UTC](https://discuss.elastic.co/t/extracting-unique-labels-in-the-field-and-wordcount/332567/1 "2023-05-04T14:09:26Z")

</div>

Hello all,

I have some data stored in Elastic Search Kibana 7.17.3 for one year time period, and I want to analyze a specific field to see how many unique labels it has and how many times each label was mentioned on a daily basis( wordcount, I need this wordcount data for all the label as a CSV file). How can I download this data as a CSV file?

Any suggestion is highly appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [May 8, 2023, 7:44am UTC](https://discuss.elastic.co/t/extracting-unique-labels-in-the-field-and-wordcount/332567/2 "2023-05-08T07:44:00Z")

</div>

Hi @Rama_Krishna2

I think you can use Lens to visualize a metric about that field using the `Unique count` dimension operation.

---

<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:** [June 5, 2023, 7:44am UTC](https://discuss.elastic.co/t/extracting-unique-labels-in-the-field-and-wordcount/332567/3 "2023-06-05T07:44:43Z")

</div>

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