Knowledge Management

How to get the mapping relationship between data models and indexes?

Iris_Pi
Path Finder

Hello Guys,

I wonder if there's any query that can list the mapping information between the existing  data models and indexes? I would like to use these info to set index constrains for data models to speed up searching.

Thanks & Regards,
Iris

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use this query to find out which indexes are used by a data model.

| tstats count from datamodel=foo by index
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...