<?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: Data of a field in next row in another field of current row in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350167#M161282</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| reverse 
| autoregress sprint_startDate as nextsprint_startDate p=1
| reverse
| fillnull value=now() nextsprint_startDate 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Updated to fill in the current date for "nextsprint_startDate" for the last sprint.  Probably not the right specification, in my experience, but it was the request...  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 14:19:47 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-04-26T14:19:47Z</dc:date>
    <item>
      <title>Data of a field in next row in another field of current row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350166#M161281</link>
      <description>&lt;P&gt;![alt text][1]&lt;/P&gt;

&lt;P&gt;The siuation is - I have sprint and their start date , I want the &lt;STRONG&gt;next sprint start date&lt;/STRONG&gt; in same row and for last sprint current date.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Current Result:-&lt;/EM&gt;&lt;BR /&gt;
sprint      sprint_startDate &lt;BR /&gt;
Sprint-0       06-March-2017&lt;BR /&gt;&lt;BR /&gt;
Sprint-1       29-March-2017&lt;BR /&gt;&lt;BR /&gt;
Sprint-2       17-April-2017       &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Required Result:-&lt;/EM&gt;&lt;BR /&gt;
sprint      sprint_startDate   ** nextsprint_startDate**&lt;BR /&gt;
Sprint-0       06-March-2017        29-March-2017&lt;BR /&gt;
Sprint-1       29-March-2017        17-April-2017&lt;BR /&gt;
Sprint-2       17-April-2017        now()&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350166#M161281</guid>
      <dc:creator>sunilpanda023</dc:creator>
      <dc:date>2020-09-29T13:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data of a field in next row in another field of current row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350167#M161282</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| reverse 
| autoregress sprint_startDate as nextsprint_startDate p=1
| reverse
| fillnull value=now() nextsprint_startDate 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Updated to fill in the current date for "nextsprint_startDate" for the last sprint.  Probably not the right specification, in my experience, but it was the request...  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350167#M161282</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-26T14:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data of a field in next row in another field of current row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350168#M161283</link>
      <description>&lt;P&gt;Thank you DalJeanis&lt;/P&gt;

&lt;P&gt;I tried with this too and it worked and it has the step function with window to change the step in any case.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| sort - sprintstartDate
| streamstats last(sprintstartDate) as next_sprintstartDate window=1 current=f
| sort  sprintstartDate

| eval next_sprintstartDate=if(isnull(next_sprintstartDate),now()),next_sprintstartDate)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 01:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-of-a-field-in-next-row-in-another-field-of-current-row/m-p/350168#M161283</guid>
      <dc:creator>sunilpanda023</dc:creator>
      <dc:date>2017-04-27T01:03:45Z</dc:date>
    </item>
  </channel>
</rss>

