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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...