Splunk Search

How to create search for daily license usage report per host?

nnimbe1
Path Finder

Hi All,

I need to create a Splunk License usage report on a daily basis for all the reporting hosts. Can someone please help me with creating search?

Host           Source       Sourcetype     Index         count of events    License Used in MB
abc         pqr        xyz            main        16405           27
bcd         rrs        yza            wineventlog   123             20
cde         rsp        urv            cisco      2345              105
0 Karma

richgalloway
SplunkTrust
SplunkTrust

This search can get you most of what you seek, except for number of events.

index=_internal source="*license_usage.log" sourcetype=splunkd 
| stats sum(b) as Bytes by h,s,st,idx 
| eval MB=round(Bytes/1024/1024,3)
| rename h as Host, s as Source, st as Sourcetype, idx as Index, MB as "License Used in MB"
| table Host, Source, Sourcetype, Index, "License Used in MB"
---
If this reply helps you, Karma would be appreciated.

adalbor
Builder

Hey @nnimbe1,
I don't have an actual search to provide but rather an app that we use in our environment that is immensely helpful when it comes to license usage. We use Meta Woot! a free Splunk app to provide almost exactly the information you need.

It has a dashboard called Meta Woot! License Event Usage that details the host, sourcetype, index, total_events, license_per_event, and total_license usage.

I would recommend check this app out as it does an amazing job of providing the license usage tracking metrics you might need

Andrew

0 Karma
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 ...