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!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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