<?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: Is there a search for indexes/sources that aren't being used... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/573470#M199841</link>
    <description>&lt;P&gt;Regarding indexes which are not being used, a simple adaptation of the example already posted yields a count of searches by index. I did this over 30 days as a quick example:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;index=_audit action=search user!=splunk-system-user search=* "index"&lt;BR /&gt;| rex "search index=\"(?&amp;lt;unused_index_search&amp;gt;\w+)"&lt;BR /&gt;| stats count by unused_index_search&lt;BR /&gt;| sort - count&lt;/P&gt;&lt;P&gt;This can then be used to compare to a list of indexes and simply lookup count. An extension could be to use a lookup in conjunction but this is simple.&lt;/P&gt;&lt;P&gt;As mentioned already, always check with the client and end users before removing anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 12:00:33 GMT</pubDate>
    <dc:creator>NullZero</dc:creator>
    <dc:date>2021-11-03T12:00:33Z</dc:date>
    <item>
      <title>Is there a search for indexes/sources that aren't being used...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/271302#M81669</link>
      <description>&lt;P&gt;Is there a way to determine what sources and/or sourcetypes AREN'T being searched? If data is coming into Splunk and nobody is really looking at that data, then I don't need to keep bringing it in. I just want to find a way to determine this.  &lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 15:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/271302#M81669</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-12-14T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search for indexes/sources that aren't being used...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/271303#M81670</link>
      <description>&lt;P&gt;This is what I would do for sourcetypes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=search user=* search=* "sourcetype"
| fields user, search
| rex field=search max_match=0 "sourcetype\s*=\s*(?&amp;lt;st_used&amp;gt;[\w\d_]+)"
| stats count by user, st_used
| sort limit=0 st_used
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can probably use something similar for indexes or sources.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 15:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/271303#M81670</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-14T15:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search for indexes/sources that aren't being used...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/271304#M81671</link>
      <description>&lt;P&gt;It will not  really show you all the data that are being searches implicitly, but will give you an idea of what is searched the most explicitly.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;explicit searches :&lt;/P&gt;

&lt;P&gt;sourcetype=A&lt;BR /&gt;
NOT sourcetype=B&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;implicit searches :&lt;/P&gt;

&lt;P&gt;sourcetype=*&lt;BR /&gt;
index=B *&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 14 Dec 2015 17:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/271304#M81671</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-12-14T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search for indexes/sources that aren't being used...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/573470#M199841</link>
      <description>&lt;P&gt;Regarding indexes which are not being used, a simple adaptation of the example already posted yields a count of searches by index. I did this over 30 days as a quick example:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;index=_audit action=search user!=splunk-system-user search=* "index"&lt;BR /&gt;| rex "search index=\"(?&amp;lt;unused_index_search&amp;gt;\w+)"&lt;BR /&gt;| stats count by unused_index_search&lt;BR /&gt;| sort - count&lt;/P&gt;&lt;P&gt;This can then be used to compare to a list of indexes and simply lookup count. An extension could be to use a lookup in conjunction but this is simple.&lt;/P&gt;&lt;P&gt;As mentioned already, always check with the client and end users before removing anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 12:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-for-indexes-sources-that-aren-t-being-used/m-p/573470#M199841</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2021-11-03T12:00:33Z</dc:date>
    </item>
  </channel>
</rss>

