Getting Data In

Metrics indexes missing in REST-API listing?

DATEVeG
Path Finder

Hi,

we created an index overview dashboard for our users. They get a list of all available indexes, the retention time per index and if the current user has access permissions for that index. Nice 🙂
The basis for that index listing is the following query:

| rest /services/data/indexes 

Now with Splunk 7.x we are also using the new metric store. However the new metric indexes are not shown in the above query!

There already seems to be a new field datatype, which should indicate the index type (metric or event): http://docs.splunk.com/Documentation/Splunk/7.1.1/RESTREF/RESTintrospect#data.2Findexes
But all this doesn't count, because metrics indexes aren't shown at all.

This is happing for us in version 7.0 and also in version 7.1.

Is anyone else experiencing this?

Thanks!
- Lorenz

0 Karma
1 Solution

thaggie_splunk
Splunk Employee
Splunk Employee

Hi Lorenz,

We didn't want to return metrics indexes by default as people with existing code would suddenly start to get indexes that needed to be queried in a different way.

In the link you gave the first parameter listed for GET /data/indexes is "datatype", this can be "all", "event" or "metric" - "event" is the default.

So to list all indexes:

| rest /services/data/indexes datatype=all

View solution in original post

thaggie_splunk
Splunk Employee
Splunk Employee

Hi Lorenz,

We didn't want to return metrics indexes by default as people with existing code would suddenly start to get indexes that needed to be queried in a different way.

In the link you gave the first parameter listed for GET /data/indexes is "datatype", this can be "all", "event" or "metric" - "event" is the default.

So to list all indexes:

| rest /services/data/indexes datatype=all
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...