<?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: Capture Status Change in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Capture-Status-Change/m-p/506250#M2233</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="STATUS ENDTIME STARTTIME
Pending 25-06-2020 24-06-2020
Pending 24-06-2020 23-06-2020
New 23-06-2020 22-06-2020
Pending 22-06-2020 21-06-2020
Pending 21-06-2020 20-06-2020
OLD 20-06-2020 19-06-2020
OLD 19-06-2020 18-06-2020
NEW 18-6-2020 17-06-2020"
| multikv
| fields - _raw _time
| eval start=strptime(STARTTIME, "%d-%m-%Y"), end=strptime(ENDTIME, "%d-%m-%Y")
| streamstats reset_on_change=t min(start) as start max(end) as end by STATUS
| stats min(start) as start by STATUS, end
| sort - end
| eval start=strftime(start, "%F"), end=strftime(end, "%F")&lt;/LI-CODE&gt;&lt;P&gt;You example data setup&amp;nbsp; is up to the fields - _raw _time&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 05:48:02 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-06-26T05:48:02Z</dc:date>
    <item>
      <title>Capture Status Change</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Capture-Status-Change/m-p/506244#M2231</link>
      <description>&lt;P&gt;I have data like this:&lt;BR /&gt;Status&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EndTime&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StartTime&lt;BR /&gt;Pending&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 24-06-2020&lt;BR /&gt;Pending&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 23-06-2020&lt;BR /&gt;New&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 22-06-2020&lt;BR /&gt;Pending&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 21-06-2020&lt;BR /&gt;Pending&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 20-06-2020&lt;BR /&gt;OLD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 19-06-2020&lt;BR /&gt;OLD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19-06-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; 18-06-2020&lt;BR /&gt;NEW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18-6-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17-06-2020&lt;/P&gt;&lt;P&gt;I need to capture the date change and start and end time of Status change. So output should be like:&lt;/P&gt;&lt;P&gt;Pending 25-06-2020 23-06-2020&lt;BR /&gt;New 23-06-2020 22-06-2020&lt;BR /&gt;Pending 22-06-2020 20-06-2020&lt;BR /&gt;OLD&amp;nbsp; 20-06-2020 18-06-2020&lt;BR /&gt;NEW&amp;nbsp; &amp;nbsp; &amp;nbsp;18-6-2020&amp;nbsp; &amp;nbsp; &amp;nbsp;17-06-2020&lt;/P&gt;&lt;P&gt;can somebody please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 04:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Capture-Status-Change/m-p/506244#M2231</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2020-06-26T04:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Status Change</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Capture-Status-Change/m-p/506250#M2233</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="STATUS ENDTIME STARTTIME
Pending 25-06-2020 24-06-2020
Pending 24-06-2020 23-06-2020
New 23-06-2020 22-06-2020
Pending 22-06-2020 21-06-2020
Pending 21-06-2020 20-06-2020
OLD 20-06-2020 19-06-2020
OLD 19-06-2020 18-06-2020
NEW 18-6-2020 17-06-2020"
| multikv
| fields - _raw _time
| eval start=strptime(STARTTIME, "%d-%m-%Y"), end=strptime(ENDTIME, "%d-%m-%Y")
| streamstats reset_on_change=t min(start) as start max(end) as end by STATUS
| stats min(start) as start by STATUS, end
| sort - end
| eval start=strftime(start, "%F"), end=strftime(end, "%F")&lt;/LI-CODE&gt;&lt;P&gt;You example data setup&amp;nbsp; is up to the fields - _raw _time&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 05:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Capture-Status-Change/m-p/506250#M2233</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-26T05:48:02Z</dc:date>
    </item>
  </channel>
</rss>

