Splunk Search

splunk search query for last 6 months day wise pool licence and need to generate report

Mahi4rus
Explorer

HI all i have prepared splunk search query for every day  poolwise license  but i need  last 6 months poolwise data and it is for every day from last 6 months onwords 

 

query for daily license check for poolwise

|rest splunk_server=local /services/licenser/pools | rename title AS Pool | search [rest splunk_server=local /services/licenser/groups | search is_active=1 | eval stack_id=stack_ids | fields stack_id] | eval quota=if(isnull(effective_quota),quota,effective_quota) | eval Used=round(used_bytes/1024/1024/1024, 3) | eval Quota=round(quota/1024/1024/1024, 3)| fields Pool Used Quota| eval PercentageUsed=Used*100/Quota|fields Pool Used Quota PercentageUsed|eval PercentageUsed = PercentageUsed + " %"

 

Result:

Pool Used Quota PercentageUsed

auto_generated_pool_enterprise0.0000.2110.00 %
Development15.68429.29753.534 %
Linux Operations1.5868.78918.05 %
Networks Logs0.8012.44132.8 %
Production41.61694.23844.161 %

 

This query is for daily basis and it will  provide the day wise license

can you please help me with the query for last 6 months  everyday how much license is consumed 

 

Labels (3)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...