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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...