Getting Data In

Displaying which indexes/sourcetypes feed datamodels

chris
Motivator

Hi,

is there an easy way to display which indexes (and/or) sourcetypes feed the data models that are configured? Or how do you onboard new data and make sure that you notice if the format of that data changes over time and no longer matches the criteria to be part of a data model?

Regards
Chris

Labels (2)
Tags (1)
1 Solution

muebel
SplunkTrust
SplunkTrust

Hi Chris, A search such as this will give you an index/sourcetype breakdown of the events in a datamodel (Authentication for example)

| datamodel Authentication Authentication search | search * | stats count by sourcetype,index

If you have particular sourcetypes you care about, you could setup an alert on such a search for those sourcetypes missing.

Please let me know if this answers your question!

View solution in original post

muebel
SplunkTrust
SplunkTrust

Hi Chris, A search such as this will give you an index/sourcetype breakdown of the events in a datamodel (Authentication for example)

| datamodel Authentication Authentication search | search * | stats count by sourcetype,index

If you have particular sourcetypes you care about, you could setup an alert on such a search for those sourcetypes missing.

Please let me know if this answers your question!

chris
Motivator

That ist he search @jaime.ramirez proposes in his answer:
| datamodel
| rex field=_raw "\"modelName\"\s*:\s*\"(?[^\"]+)\""
| fields modelName
| table modelName
| map maxsearches=40 search="tstats summariesonly count from datamodel=$modelName$ by sourcetype,index | eval modelName=\"$modelName$\""

0 Karma

chris
Motivator
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...