<?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 to generate a search to find the all the indexes and their sourcetypes without using a wildcard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350014#M103625</link>
    <description>&lt;P&gt;Since you just want a list, no other info, you can just use the metadata.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | metadata type=sourcetypes index=* OR index=_*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Please do a search before asking a simple question like this, though.  Here's the first few google results:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/120461/how-to-see-all-source-and-sourcetype-list.html"&gt;https://answers.splunk.com/answers/120461/how-to-see-all-source-and-sourcetype-list.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/2521/fastest-way-to-show-all-sources-and-sourcetypes-in-an-index.html"&gt;https://answers.splunk.com/answers/2521/fastest-way-to-show-all-sources-and-sourcetypes-in-an-index.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/69704/how-can-i-list-all-indexes-and-sourcetypes.html"&gt;https://answers.splunk.com/answers/69704/how-can-i-list-all-indexes-and-sourcetypes.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/314680/how-do-i-list-all-sourcetypes-for-each-host-per-in.html"&gt;https://answers.splunk.com/answers/314680/how-do-i-list-all-sourcetypes-for-each-host-per-in.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 19:34:26 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-03-09T19:34:26Z</dc:date>
    <item>
      <title>How to generate a search to find the all the indexes and their sourcetypes without using a wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350012#M103623</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;i would like to know the search to find all the indexes and their sourcetypes . But my search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | dedup sourcetype | table sourcetype 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and i selected " ALL TIME" . So, is there any other way to find out the indexes and their sourcetypes without using a wildcard and ALL TIME? &lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 19:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350012#M103623</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-03-09T19:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to find the all the indexes and their sourcetypes without using a wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350013#M103624</link>
      <description>&lt;P&gt;Try this &lt;CODE&gt;| tstats values(sourcetype) where index=* by index&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It uses index files only, so it should complete pretty quickly without having to scan all of your data.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 19:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350013#M103624</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-03-09T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to find the all the indexes and their sourcetypes without using a wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350014#M103625</link>
      <description>&lt;P&gt;Since you just want a list, no other info, you can just use the metadata.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | metadata type=sourcetypes index=* OR index=_*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Please do a search before asking a simple question like this, though.  Here's the first few google results:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/120461/how-to-see-all-source-and-sourcetype-list.html"&gt;https://answers.splunk.com/answers/120461/how-to-see-all-source-and-sourcetype-list.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/2521/fastest-way-to-show-all-sources-and-sourcetypes-in-an-index.html"&gt;https://answers.splunk.com/answers/2521/fastest-way-to-show-all-sources-and-sourcetypes-in-an-index.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/69704/how-can-i-list-all-indexes-and-sourcetypes.html"&gt;https://answers.splunk.com/answers/69704/how-can-i-list-all-indexes-and-sourcetypes.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/314680/how-do-i-list-all-sourcetypes-for-each-host-per-in.html"&gt;https://answers.splunk.com/answers/314680/how-do-i-list-all-sourcetypes-for-each-host-per-in.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 19:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350014#M103625</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-09T19:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to find the all the indexes and their sourcetypes without using a wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350015#M103626</link>
      <description>&lt;P&gt;If you are just trying to find all the sourcetypes you can also try &lt;STRONG&gt;metadata&lt;/STRONG&gt; command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=* 
| table sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2017 19:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350015#M103626</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-09T19:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to find the all the indexes and their sourcetypes without using a wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350016#M103627</link>
      <description>&lt;P&gt;So your search might be cumbersome because you are not using metadata.  Metadata is perfect for this instance and does not require Splunk to search all indexes at search time.  &lt;/P&gt;

&lt;P&gt;You should use something like this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | metadata type=sourcetypes index=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Much like others above have mentioned.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 13:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350016#M103627</guid>
      <dc:creator>mgrosholz</dc:creator>
      <dc:date>2017-03-14T13:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to find the all the indexes and their sourcetypes without using a wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350017#M103628</link>
      <description>&lt;P&gt;@kteng2024 - Looks like you have a few possible solutions to your question. If one of them provided a working solution, please don't forget to click "Accept" below the best answer to resolve this post. If you still need help, please leave a comment. Don’t forget to upvote anything that was helpful too. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 17:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-find-the-all-the-indexes-and-their/m-p/350017#M103628</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-07-07T17:54:28Z</dc:date>
    </item>
  </channel>
</rss>

