<?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: Viewing all Indexes and sourcetypes in use. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505052#M141059</link>
    <description>&lt;P&gt;Partial Answers coming:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Sourcetypes&lt;BR /&gt;| metadata type=sourcetypes index=*.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;2. Virtual Indexes&lt;BR /&gt;Do you have virtual indexes, as in Hadoop ones?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;| rest /services/data/indexes | search isVirtual = 1&lt;BR /&gt;&lt;BR /&gt;1. Indexes&lt;BR /&gt;| rest /services/data/indexes | search isVirtual = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With the rest, you can narrow your fields to find out what you are looking for.&lt;BR /&gt;&lt;BR /&gt;- Michael S&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 17:46:55 GMT</pubDate>
    <dc:creator>The_Simko</dc:creator>
    <dc:date>2020-06-18T17:46:55Z</dc:date>
    <item>
      <title>Viewing all Indexes and sourcetypes in use.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505028#M141056</link>
      <description>&lt;P&gt;We are in the midst of a migration from one server to the next, and need to see if there are queries running against specific indexes, virtual indexes and sourcetypes. I have been trying a number of queries against the audit log but can't find a way to extract the following information used by all active queries &amp;amp; reports.&lt;/P&gt;&lt;P&gt;1. name and count of indexes&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. name and count of virtual indexes&lt;/P&gt;&lt;P&gt;3. name and count of sourcetypes&lt;/P&gt;&lt;P&gt;Been searching for hours, any help appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 16:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505028#M141056</guid>
      <dc:creator>Abraham1234</dc:creator>
      <dc:date>2020-06-18T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing all Indexes and sourcetypes in use.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505052#M141059</link>
      <description>&lt;P&gt;Partial Answers coming:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Sourcetypes&lt;BR /&gt;| metadata type=sourcetypes index=*.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;2. Virtual Indexes&lt;BR /&gt;Do you have virtual indexes, as in Hadoop ones?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;| rest /services/data/indexes | search isVirtual = 1&lt;BR /&gt;&lt;BR /&gt;1. Indexes&lt;BR /&gt;| rest /services/data/indexes | search isVirtual = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With the rest, you can narrow your fields to find out what you are looking for.&lt;BR /&gt;&lt;BR /&gt;- Michael S&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 17:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505052#M141059</guid>
      <dc:creator>The_Simko</dc:creator>
      <dc:date>2020-06-18T17:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing all Indexes and sourcetypes in use.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505057#M141060</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2004/SearchReference/Metadata" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2004/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;| metadata type=[sourcetypes or sources or hosts] index=*&lt;/P&gt;&lt;P&gt;this will give you a list of each of the above, you might need to set your search to a broad time range, maybe at least 30 days or so depending on what you want to make sure gets migrated&lt;/P&gt;&lt;P&gt;also&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2004/SearchReference/Tstats" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2004/SearchReference/Tstats&lt;/A&gt;&lt;/P&gt;&lt;P&gt;| tstats values(sourcetype) WHERE index=* by index&lt;/P&gt;&lt;P&gt;this will give you a list of the sourcetypes by index&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- upvotes appreciated&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505057#M141060</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2020-06-18T18:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing all Indexes and sourcetypes in use.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505123#M141151</link>
      <description>&lt;P&gt;While answering the which sourcetypes/indexes are available is relatively easy, answering the question of "which of those indexes/sourcetypes were searched recently" is surprisingly difficult.&lt;/P&gt;&lt;P&gt;Two ideas are open on this and under consideration, in particular &lt;A href="https://ideas.splunk.com/ideas/E-I-49" target="_self"&gt;Better audit logs&lt;/A&gt; and &lt;A href="https://ideas.splunk.com/ideas/E-I-38" target="_self"&gt;Provide index access statistics to assist in capacity planning of the indexing tier&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I put my attempts to complete this into &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_self"&gt;Alerts for Splunk Admins (SplunkBase)&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also have the searches on &lt;A href="https://github.com/gjanders/SplunkAdmins" target="_self"&gt;github&amp;nbsp;&lt;/A&gt;in particular "SearchHeadLevel - Search Queries summary exact match 73" which works in 7.3 and above, but there is definitely some complexity in getting those searches to run so you may wish to take a more simple approach...&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 03:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Viewing-all-Indexes-and-sourcetypes-in-use/m-p/505123#M141151</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-06-19T03:26:06Z</dc:date>
    </item>
  </channel>
</rss>

