<?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 How to check continuous increase of values of a field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657838#M227219</link>
    <description>&lt;P&gt;Please help me on how I can check if the field value is continuously increasing for 3 hours.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried below query but does not help .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perc_change values are extracted from logs , whereas prev_change and growing are calculated form perc_change values.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| streamstats current=f window=1 latest(perc_change) as prev_value &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| fillnull value=0&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| eval growing = if(perc_change&amp;lt; prev_value,1,0) &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| table _time GB change perc_change prev_value growing&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;getting values as&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;perc_change&amp;nbsp; prev_value&amp;nbsp; growing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;60&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;60&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;expectations :&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;perc_change&amp;nbsp; prev_value&amp;nbsp; growing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;60&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have to send a report if the perc_change values are continuously growing for 3 hours&lt;/P&gt;&lt;P&gt;Appreciate your help . Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 03:26:39 GMT</pubDate>
    <dc:creator>Anantha123</dc:creator>
    <dc:date>2023-09-18T03:26:39Z</dc:date>
    <item>
      <title>How to check continuous increase of values of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657838#M227219</link>
      <description>&lt;P&gt;Please help me on how I can check if the field value is continuously increasing for 3 hours.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried below query but does not help .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perc_change values are extracted from logs , whereas prev_change and growing are calculated form perc_change values.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| streamstats current=f window=1 latest(perc_change) as prev_value &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| fillnull value=0&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| eval growing = if(perc_change&amp;lt; prev_value,1,0) &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;| table _time GB change perc_change prev_value growing&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;getting values as&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;perc_change&amp;nbsp; prev_value&amp;nbsp; growing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;60&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;60&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;expectations :&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;perc_change&amp;nbsp; prev_value&amp;nbsp; growing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;60&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have to send a report if the perc_change values are continuously growing for 3 hours&lt;/P&gt;&lt;P&gt;Appreciate your help . Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 03:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657838#M227219</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2023-09-18T03:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to check continuous increase of values of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657847#M227226</link>
      <description>&lt;P&gt;First of all, I suspect that by "continuous increase" you actually mean monotonous increase. &amp;nbsp;Are you thinking of &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delta" target="_blank" rel="noopener"&gt;delta&lt;/A&gt; instead? &amp;nbsp;What is the output format you need in the report? &amp;nbsp;If you want all the event details, you can then use eventstats to determine whether there was any decrement.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| delta perc_change as delta
| eventstats values(delta) as change
| where NOT changes &amp;lt; 0
| table _time GB delta perc_change&lt;/LI-CODE&gt;&lt;P&gt;If you do not need every event, you may construct some stats command that is more efficient.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 06:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657847#M227226</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-09-18T06:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to check continuous increase of values of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657864#M227231</link>
      <description>&lt;LI-CODE lang="markup"&gt;| reverse
| streamstats current=f window=1 latest(perc_change) as prev_value
| reverse
| fillnull value=0
| eval growing = if(perc_change&amp;lt; prev_value,1,0)
| table _time GB change perc_change prev_value growing&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Sep 2023 09:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-continuous-increase-of-values-of-a-field/m-p/657864#M227231</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-18T09:38:37Z</dc:date>
    </item>
  </channel>
</rss>

