Calculate logs size of a specific account at AWS OpenSearch

I’m using AWS OpenSearch service to aggregate the log to my account.
I want to calculate logs size of specific account per day.
Can I do this in OpenSearch?

Thank you

I think you’ll want to install the mapper-size plugin (see Installing plugins - OpenSearch documentation). Once you have it, you should get a _size field which should index the size of the original JSON. Then you can aggregate (e.g. by account) on that field to get the total size per whatever dimension (in this case account, but it could be per account+time-interval or pretty much any other dimension you have in your data).

1 Like