All Apps and Add-ons

How to Create Chargeback Reports in Splunk.

rohit31dec91
Explorer

Hi,
Can anyone help me how do we identify data elements that can help generate charge back report.
Is it possible in Splunk to generate Chargeback Report ?

Thanks in Advance.

jdonn_splunk
Splunk Employee
Splunk Employee

Check out my Chargeback App - https://splunkbase.splunk.com/app/2967/

0 Karma

bmacias84
Champion

@rohit31dec91,

I would use the license_usage.log to determine your charge back. Here is my approach.


# base search
#h is the value used for host and s is used for source.
index=_internal source="*license_usage.lo*" type=Usage | bucket _time span=10m | stats sum(b) as bytes by _time h, s | eval mb=bytes/1048576 |rename h as host, s as source|


# using the search command to search returned results and time charting by day
<BASE_SEARCH> | search host=foo OR host=bar OR host=span | timechart minspan=1d sum(mb) as Mbytes by host

if you look at the raw event fromm index=_internal source="*license_usage.lo*" type=Usage the other values that you could to charge back by are index, pool, and sourcetype.

st = sourcetype
idx=index
b=bytes
s=source.

Of course this also assume that you are forwarding your licensing masters logs to your indexers. Other wise you will need to run this directly on the licensing master.

Hope this give you some ideas.

Cheers,

0 Karma

rohit31dec91
Explorer

Thank You Mus & bmacias84 ill check out these with my company constraints and try out a solution.

Cheers,

0 Karma

araitz
Splunk Employee
Splunk Employee

paging bwooden

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi rohit31dec91,

one way to do it, would be based on the license usage. For example take this report on the license usage per index:

index=_internal source=*metrics.log per_index_thruput | timechart sum(kb) by series

this will report usage per index, which then can be used in some charge-back process.

Another way would be to setup license pools, let's say you have 10Gb license and you split off one pool of 1Gb. In the end you don't care how much they need for real, the pool has a size of 1Gb so you 'charge' them a tenth of your license cost....

hope that helps to get you started ...

cheers, MuS

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...