<?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: Detect inactive index (Not Logging) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568751#M100918</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199978"&gt;@ashvinpandey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reply, will this query work with index=* ? Need to&amp;nbsp; inactivity for exactly 3 months.&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 14:33:12 GMT</pubDate>
    <dc:creator>tigawi</dc:creator>
    <dc:date>2021-09-28T14:33:12Z</dc:date>
    <item>
      <title>Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568744#M100916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to determine if an index has stopped logging/has gone inactive? I have tried looking through the docs, but am new to splunk and trying to figure this out. I know we can use metadata for hosts and sourcetypes, but doesn't seem to work for indexes.&lt;/P&gt;&lt;P&gt;Any recommendations?&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568744#M100916</guid>
      <dc:creator>tigawi</dc:creator>
      <dc:date>2021-09-28T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568749#M100917</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239037"&gt;@tigawi&lt;/a&gt;&amp;nbsp;try using the below query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;your_index_name&amp;gt;
| stats earliest(_indextime) as etime latest(_indextime) as ltime by index
| convert ctime(etime) ctime(ltime)
| rename etime as "First Event Time" ltime as "Last Event Time"&lt;/LI-CODE&gt;&lt;P&gt;This query will return the first event time when it was indexed and last event time of the event when it was indexed.&lt;BR /&gt;Also, If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568749#M100917</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-28T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568751#M100918</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199978"&gt;@ashvinpandey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reply, will this query work with index=* ? Need to&amp;nbsp; inactivity for exactly 3 months.&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568751#M100918</guid>
      <dc:creator>tigawi</dc:creator>
      <dc:date>2021-09-28T14:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568752#M100919</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239037"&gt;@tigawi&lt;/a&gt;&amp;nbsp;Yup if you are adding index=* it will show the list of all index with their indexing time of first and last event.&lt;BR /&gt;Also, If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568752#M100919</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-28T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568757#M100922</link>
      <description>&lt;P&gt;Oi!&lt;/P&gt;&lt;P&gt;No, especially with index=* it's a very heavy search. You're effectively listing all evebts.&lt;/P&gt;&lt;P&gt;For a quick assesment, tstats is a much lighter way to go.&lt;/P&gt;&lt;P&gt;Yes, I know it's prone to give wrong results if you want to list by _time and you have your clocks unsynchronised and are indexing events with badly skewed time but as a quick check - much better.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568757#M100922</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-28T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568759#M100923</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;Yes tstats wont work in all the environments, yet if you need this can help:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_indextime) WHERE index=* BY index&lt;/LI-CODE&gt;&lt;P&gt;Also, If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568759#M100923</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-28T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inactive index (Not Logging)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568760#M100924</link>
      <description>&lt;P&gt;Yup.&amp;nbsp; Something like that. You can also either use strftime to format the latest time or fool splunk to use default formating for _time field &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_indextime) as _time WHERE index=* BY index&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detect-inactive-index-Not-Logging/m-p/568760#M100924</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-28T14:54:02Z</dc:date>
    </item>
  </channel>
</rss>

