Splunk Search

Is it possible to get a list of all the Indexes which are used in ITSI and all the related services to those indexes?

Suara
Explorer

Hello Community ! 

Is it possible to get a list of all the Indexes which are used in ITSI and all the related services to those indexes with a SPL ? 

| REST /services/data/indexes | dedup title | sort title | table title     -  I found this to be helpful but it's not the answer which i'm looking for. 

Thank you in advance ! 

Labels (2)
0 Karma
1 Solution

Suara
Explorer

Hello All:

I found the following SPL to do exactly what i needed: 

| inputlookup service_kpi_sbs_lookup
| rex field=kpis.base_search "^.*index=(?<indexUsed>\w+)\s"
| rex field=kpis.base_search "^.*index IN\s\((?<indexUsed>[a-zA-Z_,\s]+)\)\s"
| fields indexUsed kpis.title title
| eval indexUsed=mvdedup(indexUsed) 

Cheers.

View solution in original post

Suara
Explorer

Hello All:

I found the following SPL to do exactly what i needed: 

| inputlookup service_kpi_sbs_lookup
| rex field=kpis.base_search "^.*index=(?<indexUsed>\w+)\s"
| rex field=kpis.base_search "^.*index IN\s\((?<indexUsed>[a-zA-Z_,\s]+)\)\s"
| fields indexUsed kpis.title title
| eval indexUsed=mvdedup(indexUsed) 

Cheers.

richgalloway
SplunkTrust
SplunkTrust

You can find a list of ITSI indexes at https://docs.splunk.com/Documentation/ITSI/4.15.0/Install/Indexes#ITSI_indexes

To find them programmatically, add a filter on eai:acl.app to your query.

| REST /services/data/indexes
| search eai:acl.app="SA-IndexCreation" 
| dedup title 
| sort title 
| table title

 

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

Suara
Explorer

Hello Rich,

Thank you for the reply but i'm trying to figure out an SPL that can list all the indexes which we created excluding the default ones. And i'm trying to investigate if there is an SPL also that can list which Services use which Indexes in our environment. 

I have to create a document that lists all of that for our company 😕

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