<?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 Fetch latest timestamp of search records in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693866#M16139</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get the latest search record or multiple search combination.&lt;/P&gt;&lt;P&gt;For example, if my search is as below&lt;/P&gt;&lt;P&gt;index=myIndex ABCD AND (Input OR Error)&lt;/P&gt;&lt;P&gt;I am expecting output as below table format&lt;/P&gt;&lt;P&gt;Component | Last Input Timestamp| Last Errored Timestamp&lt;/P&gt;&lt;P&gt;ABCD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 24-03-2024 12:23:23| 24-03-2024 08:23:12&lt;/P&gt;&lt;P&gt;Search should fetch the timestamp of latest log event of (ABCD and Input) and (ABCD and Error).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 15:12:02 GMT</pubDate>
    <dc:creator>anmohan0</dc:creator>
    <dc:date>2024-07-19T15:12:02Z</dc:date>
    <item>
      <title>Fetch latest timestamp of search records</title>
      <link>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693866#M16139</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get the latest search record or multiple search combination.&lt;/P&gt;&lt;P&gt;For example, if my search is as below&lt;/P&gt;&lt;P&gt;index=myIndex ABCD AND (Input OR Error)&lt;/P&gt;&lt;P&gt;I am expecting output as below table format&lt;/P&gt;&lt;P&gt;Component | Last Input Timestamp| Last Errored Timestamp&lt;/P&gt;&lt;P&gt;ABCD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 24-03-2024 12:23:23| 24-03-2024 08:23:12&lt;/P&gt;&lt;P&gt;Search should fetch the timestamp of latest log event of (ABCD and Input) and (ABCD and Error).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 15:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693866#M16139</guid>
      <dc:creator>anmohan0</dc:creator>
      <dc:date>2024-07-19T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch latest timestamp of search records</title>
      <link>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693871#M16140</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats latest(eval(if(searchmatch("Error"),_time,null()))) as LastErroredTimestamp latest(eval(if(searchmatch("Input"),_time,null()))) as LastInputTimestamp by Component
| fieldformat LastErroredTimestamp=strftime(LastErroredTimestamp,"%F %T")
| fieldformat LastInputTimestamp=strftime(LastInputTimestamp,"%F %T")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693871#M16140</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-19T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch latest timestamp of search records</title>
      <link>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693873#M16141</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thank you very much and you made my day to achieve the desired output.&lt;/P&gt;&lt;P&gt;Also I would like to pass Component as a dropdown which could be either 1 or 2 or 3 comma separated values as AAAA, BBBB, CCCC and expecting output for each component it should display the Last Input Timestamp and Last Output Timestamp&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Component | Last Input Timestamp| Last Errored Timestamp&lt;/P&gt;&lt;P&gt;AAAA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 24-03-2024 12:23:23| 24-03-2024 08:23:12&lt;/P&gt;&lt;P&gt;BBBB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 23-03-2024 10:12:44| 24-02-2024 05:45:22&lt;/P&gt;&lt;P&gt;CCCC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 12-05-2024 11:01:00| 04-05-2024 01:23:12&lt;/P&gt;&lt;P&gt;Any help to achieve this would be really appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693873#M16141</guid>
      <dc:creator>anmohan0</dc:creator>
      <dc:date>2024-07-19T16:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch latest timestamp of search records</title>
      <link>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693881#M16142</link>
      <description>&lt;P&gt;This is a different question - you could modify your search to use something like Component IN $componentselection$ but it depends on how your dashboard is set up&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 17:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/693881#M16142</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-19T17:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch latest timestamp of search records</title>
      <link>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/709194#M16258</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, you saved me and it works seamlessly the way I wanted&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 06:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Fetch-latest-timestamp-of-search-records/m-p/709194#M16258</guid>
      <dc:creator>anmohan0</dc:creator>
      <dc:date>2025-01-20T06:01:27Z</dc:date>
    </item>
  </channel>
</rss>

