Splunk Search

How can I see the total GB used for each server by sourceype?

kteng2024
Path Finder

Can someone help me how to modify the below query for different servers. For example, i have 10 servers like dbm1,dbm2,dbm3,....,dbm10. But i would like to see the output "total GB used" for each server for that sourcetype not for the group. Moreover, can I please know how to mention sourcetype in the query because when i say sourcetype=access_log , it is not working.

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" type=Usage sourcetype=access_log | rex field=h "(ac1|bc1|cs1)(?P\w+[^\d+])" | search Group=dbm | eval GB = b/1024/1024 | rename s AS source | stats sum(GB) AS "Total GB used" by Group

0 Karma

preotesoiu
Path Finder

I believe you will need to look into the interesting fields generated when running index=_internal source=*license_usage.log type=Usage and if not mistaken you will find a field called st that refers to the original source type.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...