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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...