# Logs stored in grails size to calculate cost of increased retention

**URL:** <https://community.dynatrace.com/t/logs-stored-in-grails-size-to-calculate-cost-of-increased-retention/45747>\
**Category:** Logs\
**Tags:** licensing, logs\
**Created:** [May 24, 2024, 4:51am UTC](https://community.dynatrace.com/t/logs-stored-in-grails-size-to-calculate-cost-of-increased-retention/45747 "2024-05-24T04:51:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JoseRomero](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joseromero/32/19486_2.png) [@JoseRomero](https://community.dynatrace.com/u/JoseRomero)\
**Post date:** [May 24, 2024, 2:51pm UTC](https://community.dynatrace.com/t/logs-stored-in-grails-size-to-calculate-cost-of-increased-retention/45747/2 "2024-05-24T14:51:30Z")

</div>

Hi Pedro,

May be this can help you.

```javascript
fetch logs
| summarize logSizeGB = sum( stringLength(content) )*1000 / 1024 / 1024 / 1024 , by:{}

```

 ![JoseRomero_0-1716562230105.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/dc76f2f76ed4afec63e8afe37c183680048d80b4.png)

---

_[View the full topic](https://community.dynatrace.com/t/logs-stored-in-grails-size-to-calculate-cost-of-increased-retention/45747)._
