<?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: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385210#M9754</link>
    <description>&lt;P&gt;Do this tstats search in the UI like the other answer shows.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 00:13:46 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2018-06-18T00:13:46Z</dc:date>
    <item>
      <title>How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385207#M9751</link>
      <description>&lt;P&gt;I am able to get a list of indexes and their source types using | metadata type=sources index=* sourcetype=* ||dedup source, but I want to add the source types to the list and be able to pick the index from a drop-down so that I get only the source types and sources for a particular index.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 18:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385207#M9751</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2018-06-15T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385208#M9752</link>
      <description>&lt;P&gt;Try this search over a time window long enough to get all of the possible indexes, sources, and sourcetypes.  Save it to a dashboard panel:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | stats count by index sourcetype source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add a dropdown input to your dashboard with this configuration:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5200i1D45E5D537605990/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5201i33F7B275CC150912/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Click on the magnifying glass at the top of your dashboard panel when in Edit mode to edit the search.  Modify the search to use your token for the index value:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=$myindex$ | stats count by index sourcetype source 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jun 2018 19:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385208#M9752</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2018-06-15T19:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385209#M9753</link>
      <description>&lt;P&gt;Hi @nls7010,&lt;BR /&gt;
Try this ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats count by index,source,sourcetype|fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you have the index selected, then you could filter by &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    |tstats count  where index=your_selected_index by source,sourcetype|fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jun 2018 04:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385209#M9753</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-16T04:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385210#M9754</link>
      <description>&lt;P&gt;Do this tstats search in the UI like the other answer shows.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 00:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385210#M9754</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-18T00:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385211#M9755</link>
      <description>&lt;P&gt;Thank you for the guide below, but oddly even when I added the dropdown it's not affecting the search.  This is one Panel in a dashboard, do I have to do something different to make it work there?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 19:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385211#M9755</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2018-06-18T19:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385212#M9756</link>
      <description>&lt;P&gt;Got it going, it was just a matter of my time span.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 19:40:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385212#M9756</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2018-06-18T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385213#M9757</link>
      <description>&lt;P&gt;@nls7010, if it works , please accept answer or let us know in case of further issues&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 08:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385213#M9757</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-20T08:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of indexes, the source types for the indexes, and the sources for the source types, and be able to select the index as a dropdown?</title>
      <link>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385214#M9758</link>
      <description>&lt;P&gt;Thank you all for your replies.  I was able to get it to work as above.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 16:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-can-I-get-a-list-of-indexes-the-source-types-for-the-indexes/m-p/385214#M9758</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2018-11-12T16:06:08Z</dc:date>
    </item>
  </channel>
</rss>

