<?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: Need help to find traffic change from a  search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-traffic-change-from-a-search/m-p/641745#M222303</link>
    <description>&lt;P&gt;Nevermind, I was able to solve it by myself.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;eventtype=cacti:mirage host=onl-cacti-02 rrdn=traffic_in host_id IN (215) ldi IN (9069,9070,9071,9073,9074,9075,9077,9078,9079)&lt;BR /&gt;hostname IN (slrmpqfh-c1mpt-01-owmlb01)&lt;BR /&gt;| reverse&lt;BR /&gt;| streamstats current=t window=2 global=f range(_time) as deltaTime range(rrdv) AS rrd_value_delta by name_cache&lt;BR /&gt;| eval isTraffic = if(like(rrdn,"%traffic%"),1,0)&lt;BR /&gt;| eval kpi = if(isTraffic==1,rrd_value_delta*8/deltaTime/1024/1024/1024,rrd_value_delta/deltaTime)&lt;/P&gt;&lt;P&gt;| streamstats current=f window=2 global=f last(kpi) as previouskpi by name_cache&lt;BR /&gt;| eval change=round(((kpi-previouskpi)/previouskpi)*100,2)&lt;/P&gt;&lt;P&gt;| noop feature_flag=stats:allow_stats_v2:false&lt;BR /&gt;| timechart span=5m limit=0 useother=f first(change) as change_percent list(kpi) as kpi by name_cache&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 11:29:48 GMT</pubDate>
    <dc:creator>phularah</dc:creator>
    <dc:date>2023-04-28T11:29:48Z</dc:date>
    <item>
      <title>How to find traffic change from a  search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-traffic-change-from-a-search/m-p/641541#M222240</link>
      <description>&lt;P&gt;I have a search and resultant output like shown below:&lt;BR /&gt;search is --&amp;gt;&amp;nbsp;eventtype=cacti:mirage host=onl-cacti-02 rrdn=traffic_in host_id IN (215) ldi IN (9069,9070,9071,9073,9074,9075,9077,9078,9079)&lt;BR /&gt;hostname IN (slrmpqfh-c1mpt-01-owmlb01)&lt;BR /&gt;| reverse&lt;BR /&gt;| streamstats current=t window=2 global=f range(_time) as deltaTime range(rrdv) AS rrd_value_delta by name_cache&lt;BR /&gt;| eval isTraffic = if(like(rrdn,"%traffic%"),1,0)&lt;BR /&gt;| eval kpi = if(isTraffic==1,rrd_value_delta*8/deltaTime/1024/1024/1024,rrd_value_delta/deltaTime)&lt;BR /&gt;| noop feature_flag=stats:allow_stats_v2:false&lt;BR /&gt;| timechart span=5m limit=0 useother=f list(kpi) as kpi by name_cache&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phularah_0-1682577348835.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25109i5D73F1E5E5487C32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phularah_0-1682577348835.png" alt="phularah_0-1682577348835.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What I want to have are new fields fe01, fe02 and so on that would give the percentage change in value for each of the fields. I know timechart is not the command to use here. I tried eventstats and streamstats but wasn't able to do what I wanted.&lt;/P&gt;
&lt;P&gt;Each ldi in my search corresponds to a unique name_cache. and host_id corresponds to a unique hostname. It is easy to filter data via ldi and host_id fields than typing long and complicated name_cache and hostname fields.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;e.g., the new field FE01 should be like ((&lt;SPAN&gt;1.21-1.33)/1.21-(1.21-1.33))*100 and same formula for other fields.&lt;BR /&gt;&lt;/SPAN&gt;It means, new fields FE01, FE02 and so on would show the traffic change percent.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203131"&gt;@andrewtrobec&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/177803"&gt;@lakshman239&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735"&gt;@efavreau&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222170"&gt;@phanTom&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/90723"&gt;@diogofgm&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 13:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-traffic-change-from-a-search/m-p/641541#M222240</guid>
      <dc:creator>phularah</dc:creator>
      <dc:date>2023-04-28T13:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to find traffic change from a  search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-traffic-change-from-a-search/m-p/641745#M222303</link>
      <description>&lt;P&gt;Nevermind, I was able to solve it by myself.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;eventtype=cacti:mirage host=onl-cacti-02 rrdn=traffic_in host_id IN (215) ldi IN (9069,9070,9071,9073,9074,9075,9077,9078,9079)&lt;BR /&gt;hostname IN (slrmpqfh-c1mpt-01-owmlb01)&lt;BR /&gt;| reverse&lt;BR /&gt;| streamstats current=t window=2 global=f range(_time) as deltaTime range(rrdv) AS rrd_value_delta by name_cache&lt;BR /&gt;| eval isTraffic = if(like(rrdn,"%traffic%"),1,0)&lt;BR /&gt;| eval kpi = if(isTraffic==1,rrd_value_delta*8/deltaTime/1024/1024/1024,rrd_value_delta/deltaTime)&lt;/P&gt;&lt;P&gt;| streamstats current=f window=2 global=f last(kpi) as previouskpi by name_cache&lt;BR /&gt;| eval change=round(((kpi-previouskpi)/previouskpi)*100,2)&lt;/P&gt;&lt;P&gt;| noop feature_flag=stats:allow_stats_v2:false&lt;BR /&gt;| timechart span=5m limit=0 useother=f first(change) as change_percent list(kpi) as kpi by name_cache&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 11:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-traffic-change-from-a-search/m-p/641745#M222303</guid>
      <dc:creator>phularah</dc:creator>
      <dc:date>2023-04-28T11:29:48Z</dc:date>
    </item>
  </channel>
</rss>

