<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Metrics indexes missing in REST-API listing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Metrics-indexes-missing-in-REST-API-listing/m-p/431269#M75464</link>
    <description>&lt;P&gt;Hi Lorenz,&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;So to list all indexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/data/indexes datatype=all
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 May 2018 15:49:31 GMT</pubDate>
    <dc:creator>thaggie_splunk</dc:creator>
    <dc:date>2018-05-30T15:49:31Z</dc:date>
    <item>
      <title>Metrics indexes missing in REST-API listing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metrics-indexes-missing-in-REST-API-listing/m-p/431268#M75463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
The basis for that index listing is the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/data/indexes 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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!&lt;/P&gt;

&lt;P&gt;There already seems to be a new field &lt;STRONG&gt;datatype&lt;/STRONG&gt;, which should indicate the index type (metric or event): &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/RESTREF/RESTintrospect#data.2Findexes"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/RESTREF/RESTintrospect#data.2Findexes&lt;/A&gt;&lt;BR /&gt;
But all this doesn't count, because metrics indexes aren't shown at all.&lt;/P&gt;

&lt;P&gt;This is happing for us in version 7.0 and also in version 7.1.&lt;/P&gt;

&lt;P&gt;Is anyone else experiencing this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
- Lorenz&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 13:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metrics-indexes-missing-in-REST-API-listing/m-p/431268#M75463</guid>
      <dc:creator>DATEVeG</dc:creator>
      <dc:date>2018-05-30T13:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics indexes missing in REST-API listing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metrics-indexes-missing-in-REST-API-listing/m-p/431269#M75464</link>
      <description>&lt;P&gt;Hi Lorenz,&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;So to list all indexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/data/indexes datatype=all
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 May 2018 15:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metrics-indexes-missing-in-REST-API-listing/m-p/431269#M75464</guid>
      <dc:creator>thaggie_splunk</dc:creator>
      <dc:date>2018-05-30T15:49:31Z</dc:date>
    </item>
  </channel>
</rss>

