<?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 Implementing conditions between different lines in stats command in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688838#M12485</link>
    <description>&lt;P&gt;I have extracted this data with the stats command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jarrebola_1-1716884361179.png" style="width: 792px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31020i5EF0D345F54D306F/image-dimensions/792x105?v=v2" width="792" height="105" role="button" title="jarrebola_1-1716884361179.png" alt="jarrebola_1-1716884361179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The goal is to compare left timestamp (start time) of the second line with right timestamp of previous line (end time) and the condition will be like this&lt;/P&gt;&lt;P&gt;if (start next row &amp;gt; end previous row) 1:0; in this way I want to mark this lines with bool=1 if not bool=0&lt;/P&gt;&lt;P&gt;Please someone has some suggestion about how can I implement this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 08:22:30 GMT</pubDate>
    <dc:creator>jarrebola</dc:creator>
    <dc:date>2024-05-28T08:22:30Z</dc:date>
    <item>
      <title>Implementing conditions between different lines in stats command</title>
      <link>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688838#M12485</link>
      <description>&lt;P&gt;I have extracted this data with the stats command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jarrebola_1-1716884361179.png" style="width: 792px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31020i5EF0D345F54D306F/image-dimensions/792x105?v=v2" width="792" height="105" role="button" title="jarrebola_1-1716884361179.png" alt="jarrebola_1-1716884361179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The goal is to compare left timestamp (start time) of the second line with right timestamp of previous line (end time) and the condition will be like this&lt;/P&gt;&lt;P&gt;if (start next row &amp;gt; end previous row) 1:0; in this way I want to mark this lines with bool=1 if not bool=0&lt;/P&gt;&lt;P&gt;Please someone has some suggestion about how can I implement this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688838#M12485</guid>
      <dc:creator>jarrebola</dc:creator>
      <dc:date>2024-05-28T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing conditions between different lines in stats command</title>
      <link>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688841#M12486</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=1 current=f values(right_time) as previous_right_time&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 May 2024 08:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688841#M12486</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-28T08:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing conditions between different lines in stats command</title>
      <link>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688847#M12487</link>
      <description>&lt;P&gt;Hi ITWhisperer, first I want to say Thanks !, now I have this with your suggestion,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jarrebola_0-1716885750469.png" style="width: 776px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31021iB566C0DD399D5B88/image-dimensions/776x196?v=v2" width="776" height="196" role="button" title="jarrebola_0-1716885750469.png" alt="jarrebola_0-1716885750469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I need to compare the start time with previous right_time to set the bool field for every line, how I can do this please?&lt;/P&gt;&lt;P&gt;Thanks you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688847#M12487</guid>
      <dc:creator>jarrebola</dc:creator>
      <dc:date>2024-05-28T08:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing conditions between different lines in stats command</title>
      <link>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688850#M12488</link>
      <description>&lt;P&gt;I already figured out ..&lt;/P&gt;&lt;P&gt;Thanks for your help ITWhisperer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jarrebola_0-1716886398846.png" style="width: 767px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31022i47AB0C0841D31FB4/image-dimensions/767x234?v=v2" width="767" height="234" role="button" title="jarrebola_0-1716886398846.png" alt="jarrebola_0-1716886398846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Implementing-conditions-between-different-lines-in-stats-command/m-p/688850#M12488</guid>
      <dc:creator>jarrebola</dc:creator>
      <dc:date>2024-05-28T08:53:44Z</dc:date>
    </item>
  </channel>
</rss>

