Splunk Search

how to calculate the results of a particular search in terms of MB or GB?

pavanae
Builder

I have a search string "xyz" now how can i calculate how much amount of date got generated with that particular search in terms of Mega bytes or giga bytes?

Is it possible to find out

Note :- "xyz" is a search string and it's not a field

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try this inefficient/not 100% accurate method

your base search "xyz" | eval b=len(_raw) | stats sum(b) as b | eval mb=round(b/1024/1024,2) | eval gb=round(b/1024/1024/1024,2)

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Try this inefficient/not 100% accurate method

your base search "xyz" | eval b=len(_raw) | stats sum(b) as b | eval mb=round(b/1024/1024,2) | eval gb=round(b/1024/1024/1024,2)
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...