<?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 get Index or Sourcetype not accessed or used by anyone in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740797#M240485</link>
    <description>&lt;P&gt;I have tried to get the index not used used any KO, but not getting all the details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rest /services/data/indexes&lt;BR /&gt;| fields index&lt;BR /&gt;| eval index=1&lt;BR /&gt;[index=_audit| stats count as accessed by index, search ]&lt;/P&gt;&lt;P&gt;| stats sum(accessed) as accessed, values(index) as index by&amp;nbsp;&lt;/P&gt;&lt;P&gt;| fillnull accessed value=0&lt;BR /&gt;| where index=1 AND accessed=0&lt;/P&gt;&lt;TABLE width="526"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="76"&gt;Total Index&lt;/TD&gt;&lt;TD width="267"&gt;Index Not used in Any Knowledge Object&lt;/TD&gt;&lt;TD width="183"&gt;Index has 0 data last 90 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 04 Mar 2025 16:55:07 GMT</pubDate>
    <dc:creator>harishsplunk7</dc:creator>
    <dc:date>2025-03-04T16:55:07Z</dc:date>
    <item>
      <title>How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712559#M240363</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am want to get the list of Index and sourcetype which is not used by anyone for more than 90 days.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 04:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712559#M240363</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2025-02-26T04:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712572#M240364</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259591"&gt;@harishsplunk7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this, you can change the age value to&amp;nbsp;7776000 (90days)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1740560355541.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34711i661CB9CBCC0BA728/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1740560355541.png" alt="kiran_panchavat_0-1740560355541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_1-1740560416894.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34712iFC438BDB01D0EEDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_1-1740560416894.png" alt="kiran_panchavat_1-1740560416894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 09:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712572#M240364</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-26T09:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712575#M240365</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259591"&gt;@harishsplunk7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;query for 90 days.&lt;/P&gt;&lt;PRE&gt;| tstats latest(_time) as lastTime where index=* by index, sourcetype &lt;BR /&gt;| eval age=now()-lastTime &lt;BR /&gt;| where age &amp;gt; 7776000 &lt;BR /&gt;| eval lastTime=strftime(lastTime, "%Y-%m-%d %H:%M:%S") &lt;BR /&gt;| table index, sourcetype, lastTime&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 09:01:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712575#M240365</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-26T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712624#M240378</link>
      <description>&lt;P&gt;the query is not getting expected result,&amp;nbsp; i was runining for last 90 days but didnt get the result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 17:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/712624#M240378</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2025-02-26T17:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740612#M240471</link>
      <description>&lt;P&gt;&lt;SPAN&gt;the query is not getting expected result,&amp;nbsp; I need to get the list of index which is not used by anyone&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 16:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740612#M240471</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2025-03-03T16:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740626#M240475</link>
      <description>&lt;P&gt;1. Main question - how do you define "not used"?&lt;/P&gt;&lt;P&gt;2. While indexes are discrete "bags" for events, sourcetype is just a label. Yes, it bears a significant meaning for Splunk functionalities but you can even make each event have a separate sourcetype. So why would you want to know what your "unused" sourcetype are?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 18:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740626#M240475</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-03T18:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740628#M240476</link>
      <description>&lt;P&gt;I am listing the index name using rest query and then checking those index name with audit or internal to to find if how many index used, sourcetype used, and HOW Many index not used in splunk.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also i need to &lt;SPAN&gt;identify which indexes and sourcetypes have not received any data for a period exceeding 90 days.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 18:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740628#M240476</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2025-03-03T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740633#M240477</link>
      <description>This is quite often asked question when people want know are there unused indexes etc. you could look those by searching with google.&lt;BR /&gt;Short answer is you can’t get this kind of list which is 100% accurate. There are so many ways how you can access that data and there is no requirement that users must use index name or sourcetype names on queries.&lt;BR /&gt;Of course you can get some estimates and you can get list of indexes and sourcetypes which are used, but there is no way to get list of unused ones!</description>
      <pubDate>Mon, 03 Mar 2025 19:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740633#M240477</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-03-03T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740645#M240478</link>
      <description>&lt;P&gt;Again - depends on what "unused" means here.&lt;/P&gt;&lt;P&gt;Just listing defined indexes which hadn't received any data - that should be pretty straightforward indeed - check your defined indexes (it might be difficult though if you're on distributed setup and don't have the capability of spawning rest to indexers!) and compare it with a summary of your data across all indexes. (be aware of the difference between _time and _indextime). Be aware though that if you have shorter retention periods than what you're searching through, you might not get valid data.&lt;/P&gt;&lt;P&gt;But that's it. Depending on what you mean by "unused", the rest of the task can be difficult or even impossible.&lt;/P&gt;&lt;P&gt;How is Splunk supposed to know what sourcetypes you might have had defined yesterday and haven't searched for them? Or something like that...&lt;/P&gt;&lt;P&gt;And if you have two or more SH(C)s connecting to the same indexer(s)...&lt;/P&gt;&lt;P&gt;That might get ugly quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 20:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740645#M240478</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-03T20:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740647#M240479</link>
      <description>Of course it depends on what “unused” means and what kind of role you have. I expect that you have admin role which can access all indexes. But as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt; said if your role haven’t access to all indexes or you role haven’t granted capability to use remote rest to indexers then we have one additional issue. Fortunately we have &lt;A href="https://splunkbase.splunk.com/app/6368" target="_blank"&gt;https://splunkbase.splunk.com/app/6368&lt;/A&gt; which help you on those cases, but still there will be other challenges.</description>
      <pubDate>Mon, 03 Mar 2025 20:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740647#M240479</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-03-03T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Index or Sourcetype not accessed or used by anyone in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740797#M240485</link>
      <description>&lt;P&gt;I have tried to get the index not used used any KO, but not getting all the details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rest /services/data/indexes&lt;BR /&gt;| fields index&lt;BR /&gt;| eval index=1&lt;BR /&gt;[index=_audit| stats count as accessed by index, search ]&lt;/P&gt;&lt;P&gt;| stats sum(accessed) as accessed, values(index) as index by&amp;nbsp;&lt;/P&gt;&lt;P&gt;| fillnull accessed value=0&lt;BR /&gt;| where index=1 AND accessed=0&lt;/P&gt;&lt;TABLE width="526"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="76"&gt;Total Index&lt;/TD&gt;&lt;TD width="267"&gt;Index Not used in Any Knowledge Object&lt;/TD&gt;&lt;TD width="183"&gt;Index has 0 data last 90 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 04 Mar 2025 16:55:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Index-or-Sourcetype-not-accessed-or-used-by-anyone-in/m-p/740797#M240485</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2025-03-04T16:55:07Z</dc:date>
    </item>
  </channel>
</rss>

