# How to get size of each event/record in logstash /elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-get-size-of-each-event-record-in-logstash-elasticsearch/319235>\
**Category:** Logstash\
**Created:** [November 17, 2022, 6:02pm UTC](https://discuss.elastic.co/t/how-to-get-size-of-each-event-record-in-logstash-elasticsearch/319235 "2022-11-17T18:02:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [November 17, 2022, 6:02pm UTC](https://discuss.elastic.co/t/how-to-get-size-of-each-event-record-in-logstash-elasticsearch/319235/1 "2022-11-17T18:02:41Z")

</div>

How to get size of each event/record in logstash /elasticsearch. Based on that size i am trying to calculate size of each application in that index.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 20, 2022, 5:57am UTC](https://discuss.elastic.co/t/how-to-get-size-of-each-event-record-in-logstash-elasticsearch/319235/2 "2022-11-20T05:57:28Z")

</div>

Hi @priti

There is no really great way to do that today... but what I do is in The Kibana -\> Dev Tools run

```auto
GET /_cat/indices/my-index?v&s=pri.store.size:desc&bytes=b
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open my-index YnYLPTZQQrWSzoA3CHv6wQ 1 1 11079752 0 13106423176 6551572264

```

Then You can figure out the Percentage of Each App In the Index by Using Lens with a Pie Chart

 ![Screen Shot 2022-11-19 at 9.55.40 PM](https://us1.discourse-cdn.com/elastic/original/3X/9/4/9416d843bc75fd6662dc085ebf2f3686fdd61158.jpeg)

Then Just take Those Percentages multiply the Primary or Total Storage which ever you like...

---

<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:** [December 18, 2022, 5:57am UTC](https://discuss.elastic.co/t/how-to-get-size-of-each-event-record-in-logstash-elasticsearch/319235/3 "2022-12-18T05:57:40Z")

</div>

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