- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to choose the index and sourcetype
Jana42855
Explorer
09-13-2023
09:27 AM
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.....
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
09-13-2023
09:46 AM
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.
If this reply helps you, Karma would be appreciated.
