<?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 Detecting Unused Index and Reducing Splunk Log Size in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747519#M10936</link>
    <description>&lt;P&gt;Is there a way to detect unused indexes in Splunk via a query? Also, how can we control the growth of log sizes effectively?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:12:18 GMT</pubDate>
    <dc:creator>megha_04</dc:creator>
    <dc:date>2025-06-05T06:12:18Z</dc:date>
    <item>
      <title>Detecting Unused Index and Reducing Splunk Log Size</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747519#M10936</link>
      <description>&lt;P&gt;Is there a way to detect unused indexes in Splunk via a query? Also, how can we control the growth of log sizes effectively?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:12:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747519#M10936</guid>
      <dc:creator>megha_04</dc:creator>
      <dc:date>2025-06-05T06:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Unused Index and Reducing Splunk Log Size</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747525#M10937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310624"&gt;@megha_04&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding controlling the sizes of logs - I would recommend looking at&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/managing-index-sizes-in-splunk.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/managing-index-sizes-in-splunk.html&lt;/A&gt;&amp;nbsp;as there is a little much to fit into an answer here!&lt;/P&gt;&lt;P&gt;But typically it is managed by setting the&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.2/Admin/Indexesconf#:~:text=frozenTimePeriodInSecs%20%3D%20%3Cnonnegative%20integer%3E" target="_self"&gt;frozenTimePeriodInSecs&lt;/A&gt;&amp;nbsp;per index to control how long (in seconds) your index retains data for.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747525#M10937</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-05T06:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Unused Index and Reducing Splunk Log Size</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747527#M10938</link>
      <description>&lt;P&gt;In terms of understanding which indexes are NOT being accessed. This is actually pretty challenging for a number of reaons, whilst its possible to look in the _audit index and see which indexes are being searched, its pretty difficult to determine exactly which indexes have been searched for a number of reasons:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Different users have access to different indexers, so using wildcards (e.g. index=*) can mean different indexes are accessed depending on roles.&lt;/LI&gt;&lt;LI&gt;Macros/tags/eventtypes may contain index references and would need to be determined and expanded&lt;/LI&gt;&lt;LI&gt;Different user roles may have different&amp;nbsp;&lt;A href="https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/9.4/configuration-file-reference/9.4.2-configuration-file-reference/authorize.conf#:~:text=srchIndexesDefault%20%3D%20%3Csemicolon%2Dseparated%20list%3E" target="_self"&gt;srchIndexesDefault&lt;/A&gt;&amp;nbsp;which means they might not specify an index to search as rely on the defaults.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are you using Smartstore/Splunk Cloud? This may offer some slightly different approaches to this as we could look at smartstore cache activity to try and determine indexes accessed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747527#M10938</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-05T06:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Unused Index and Reducing Splunk Log Size</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747555#M10943</link>
      <description>&lt;P&gt;Add to this the fact that searches can be created dynamically by means of subsearches and/or map command and there is no way to find all indexes (not) accessed by looking at searches.&lt;/P&gt;&lt;P&gt;One could hypotesize that you could try to leverage some OS-level monitoring to find whether the actual index directories are accessed but that could also not yield reasonable results since Splunk's housekeeping threads must access the indexes to enforce retention policies and data lifecycle.&lt;/P&gt;&lt;P&gt;Having said that - you can search _internal and _audit logs for executed searches and try to build a list of indexes which&amp;nbsp;&lt;EM&gt;were&lt;/EM&gt; used and thus limit your investigation whether anyone uses the ingested data to only a subset of indexes not mentioned in that list.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 10:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Detecting-Unused-Index-and-Reducing-Splunk-Log-Size/m-p/747555#M10943</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-06-05T10:04:52Z</dc:date>
    </item>
  </channel>
</rss>

