Splunk Search

How do I display multiple sources, hosts, and source types on a table?

maryamchar
Explorer

I want a table that shows my hosts, sources, source types, and indexes with some data feeds. How do I approach that?

i was thinking to do

source=" source1" , host = " " sourcetype "sourcetype11 " , index= "index1" 
source="source2"  , host = " " sourcetype "sourcetype22 " , index= "index2" 

|table source, host, sourcetype, index 

The above is not working and not giving me results. Is there an easy way to solve this problem? I'm using Splunk Enterprise search and reporting. Thanks!

Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try | tstats count by source, host, sourcetype, index | table source host sourcetype index.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try | tstats count by source, host, sourcetype, index | table source host sourcetype index.

---
If this reply helps you, Karma would be appreciated.
0 Karma

maryamchar
Explorer

Thank you so much!!!

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...