Monitoring Splunk

Estimating Cost By Sourcetype

daniel333
Builder

All, 

 

Just trying to get a swag of cost by sourcetype. I wrote this search, but seems to me there is a more cost effective way to do this. 

 

index=* sourcetype=*
NOT sourcetype=stash
NOT index=stash
| fields _raw
| eval bytes=len(_raw)/1024/1024/1024
| eval splunk_cost = 685
| eval gigcost = bytes * splunk_cost
| stats sum(gigcost) as CostPerYear by sourcetype
| sort - CostPerYear
| addcoltotals

Labels (1)

bowesmana
SplunkTrust
SplunkTrust
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @daniel333 ...so this case depends on your own log, not a generic one like apache logs/win basic logs, etc.. 

if its a generic log, others would have had this issue and they can give suggestions. 

May i know if this use-case is to understand that which sourcetype consumed how much splunk license cost?

if yes, maybe other users also have had this issue and they can give some suggestions. 

 

(PS - i have given around 500+ karma points so far, received badge for that, if an answer helped you, a karma point would be nice!. we all should start "Learn, Give Back, Have Fun")

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...