Logs stored in grails size to calculate cost of increased retention

Hi,

Well, the question probably says it all, but I am looking at increasing retention of certain logs (potentially all), but I need to be able to calculate how many Gbs of data I have currently stored to be able to do so.

I have seen a couple of old posts indicating some options that don’t seem to be valid anymore, and it feels it should be a fairly easy information to get, but couldn’t find the way.

Thanks,

Hi Pedro,

May be this can help you.

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