<?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: Query result in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668309#M15483</link>
    <description>&lt;P&gt;It looks like your host ip may not be in your lookup - please add the relevant information to the lookup.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Nov 2023 10:20:41 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-11-11T10:20:41Z</dc:date>
    <item>
      <title>How to find when index was last updated</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668220#M15476</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this query that runs&amp;nbsp;&lt;/P&gt;&lt;P&gt;| tstats latest(_time) as LatestEvent where index=* by index, host&lt;BR /&gt;| eval LatestLog=strftime(LatestEvent,"%a %m/%d/%Y %H:%M:%S")&lt;BR /&gt;| eval duration = now() - LatestEvent&lt;BR /&gt;| eval timediff = tostring(duration, "duration")&lt;BR /&gt;| lookup HostTreshold host&lt;BR /&gt;| where duration &amp;gt; threshold&lt;BR /&gt;| rename host as "src_host", index as "idx"&lt;BR /&gt;| fields - LatestEvent&lt;BR /&gt;| search NOT (index="cim_modactions" OR index="risk" OR index="audit_summary" OR index="threat_activity" OR index="endpoint_summary" OR index="summary" OR index="main" OR index="notable" OR index="notable_summary" OR index="mandiant")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sivakumar28_0-1699609144424.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28074i67371CDBABC56FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sivakumar28_0-1699609144424.png" alt="sivakumar28_0-1699609144424.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now how do i add&amp;nbsp;&amp;nbsp;index = waf_imperva . Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 11:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668220#M15476</guid>
      <dc:creator>sivakumar28</dc:creator>
      <dc:date>2023-11-10T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668221#M15477</link>
      <description>&lt;P&gt;It is not clear what your expected result would look like - please can you explain further&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668221#M15477</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-10T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668229#M15478</link>
      <description>&lt;P&gt;The query should have the result of&amp;nbsp;&lt;SPAN&gt;index = waf_imperva. However, the result is not there. How to I ensure to include&amp;nbsp;waf_imperva in the query or how do I troubleshoot why not there?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 11:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668229#M15478</guid>
      <dc:creator>sivakumar28</dc:creator>
      <dc:date>2023-11-10T11:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668230#M15479</link>
      <description>&lt;P&gt;Start with this and look to see when you last got events for that index and which host or host is was.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as LatestEvent where index=waf_imperva by host&lt;/LI-CODE&gt;&lt;P&gt;Then back track from there to figure out why you don't have any events&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 11:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668230#M15479</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-10T11:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668262#M15480</link>
      <description>&lt;P&gt;Do i need to include the IP address?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 17:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668262#M15480</guid>
      <dc:creator>sivakumar28</dc:creator>
      <dc:date>2023-11-10T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668279#M15481</link>
      <description>&lt;P&gt;Which ip address?&lt;/P&gt;&lt;P&gt;Did you find out if you have any events in that index?&lt;/P&gt;&lt;P&gt;What timeframe did you search over?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668279#M15481</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-10T21:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668291#M15482</link>
      <description>&lt;P&gt;&amp;nbsp;Hi ITWhisperer&lt;/P&gt;
&lt;P&gt;| tstats latest(_time) as LatestEvent where index=waf_imperva by host&lt;/P&gt;
&lt;P&gt;15 min time frame&lt;/P&gt;
&lt;P&gt;Host&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count&lt;BR /&gt;10.30.168.10 1699663326&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why query below is not providing this result? My humble request for a struggling engineer, May I have your whatsup?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as LatestEvent where index=* by index, host
| eval LatestLog=strftime(LatestEvent,"%a %m/%d/%Y %H:%M:%S")
| eval duration = now() - LatestEvent
| eval timediff = tostring(duration, "duration")
| lookup HostTreshold host
| where duration &amp;gt; threshold
| rename host as "src_host", index as "idx"
| fields - LatestEvent
| search NOT (index="cim_modactions" OR index="risk" OR index="audit_summary" OR index="threat_activity" OR index="endpoint_summary" OR index="summary" OR index="main" OR index="notable" OR index="notable_summary" OR index="mandiant")&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 11 Nov 2023 09:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668291#M15482</guid>
      <dc:creator>sivakumar28</dc:creator>
      <dc:date>2023-11-11T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668309#M15483</link>
      <description>&lt;P&gt;It looks like your host ip may not be in your lookup - please add the relevant information to the lookup.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 10:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668309#M15483</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-11T10:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668311#M15484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i do that? Any steps pls. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva Kumar&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 10:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668311#M15484</guid>
      <dc:creator>sivakumar28</dc:creator>
      <dc:date>2023-11-11T10:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query result</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668312#M15485</link>
      <description>&lt;P&gt;Edit your lookup file and reload it, or use outputlookup to overwrite/update it.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 10:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-find-when-index-was-last-updated/m-p/668312#M15485</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-11T10:29:51Z</dc:date>
    </item>
  </channel>
</rss>

