Splunk Search

How to choose the index and sourcetype

Jana42855
Explorer

Hi All,

I have a many index and sourcetypes but i don't know which one i have to use to search for specific ip address traffic with port..

please guide me like how can i identify and use the  existing index and sourcetypes to  analyze  particular traffic.....

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

We don't know your data.  Ideally, your site has a data dictionary with this information, but that's rare.  Consult your Splunk admin about that.

You can use the metadata command to get a list of sourcetypes or use this query.

| tstats count where index=* by index,sourcetype

then take educated guesses about which sourcetype is more likely to contain the data you seek.  Search that sourcetype to verify your guess.

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...