<?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 Comparing data sets from two types of host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-data-sets-from-two-types-of-host/m-p/48077#M11479</link>
    <description>&lt;P&gt;I'm using the webping app from SplunkBase to calculate latency from each of my forwarders to a central server.  I'm collecting latency data from multiple devices on each location's wireless LAN as well as from a single device on the physical LAN closer to the WAN interface.  Currently, I can use two different search strings to show me average latency (time_in_ms) by type of device grouped by location, which allows me to visualize LAN performance separate from WAN performance.&lt;/P&gt;

&lt;P&gt;The next step, which is where I'm struggling, is that I'd like to come up with single search string that would compare the avg(time_in_ms) of TypeA against the avg(time_in_ms) of TypeB for each BusinessUnit (extracted field) and show me any resulting locations where the difference between LAN and WAN latency is greater than 100ms.&lt;/P&gt;

&lt;P&gt;Here are my search strings:&lt;/P&gt;

&lt;P&gt;Returns average latency grouped by a field extraction that denotes location:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=webping time_in_ms &amp;lt; 2000 |stats avg(time_in_ms) by BusinessUnit | sort -avg(time_in_ms)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns average latency grouped by host TypeA&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=webping time_in_ms &amp;lt; 2000 NOT host="ssa*" |stats avg(time_in_ms) by host | sort -avg(time_in_ms)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns average latency groupd by host TypeB&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=webping time_in_ms &amp;lt; 2000 host="ssa*" |stats avg(time_in_ms) by host | sort -avg(time_in_ms)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2011 03:01:41 GMT</pubDate>
    <dc:creator>drwilliams</dc:creator>
    <dc:date>2011-02-22T03:01:41Z</dc:date>
    <item>
      <title>Comparing data sets from two types of host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-data-sets-from-two-types-of-host/m-p/48077#M11479</link>
      <description>&lt;P&gt;I'm using the webping app from SplunkBase to calculate latency from each of my forwarders to a central server.  I'm collecting latency data from multiple devices on each location's wireless LAN as well as from a single device on the physical LAN closer to the WAN interface.  Currently, I can use two different search strings to show me average latency (time_in_ms) by type of device grouped by location, which allows me to visualize LAN performance separate from WAN performance.&lt;/P&gt;

&lt;P&gt;The next step, which is where I'm struggling, is that I'd like to come up with single search string that would compare the avg(time_in_ms) of TypeA against the avg(time_in_ms) of TypeB for each BusinessUnit (extracted field) and show me any resulting locations where the difference between LAN and WAN latency is greater than 100ms.&lt;/P&gt;

&lt;P&gt;Here are my search strings:&lt;/P&gt;

&lt;P&gt;Returns average latency grouped by a field extraction that denotes location:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=webping time_in_ms &amp;lt; 2000 |stats avg(time_in_ms) by BusinessUnit | sort -avg(time_in_ms)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns average latency grouped by host TypeA&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=webping time_in_ms &amp;lt; 2000 NOT host="ssa*" |stats avg(time_in_ms) by host | sort -avg(time_in_ms)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns average latency groupd by host TypeB&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=webping time_in_ms &amp;lt; 2000 host="ssa*" |stats avg(time_in_ms) by host | sort -avg(time_in_ms)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2011 03:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-data-sets-from-two-types-of-host/m-p/48077#M11479</guid>
      <dc:creator>drwilliams</dc:creator>
      <dc:date>2011-02-22T03:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data sets from two types of host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-data-sets-from-two-types-of-host/m-p/48078#M11480</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=webping time_in_ms &amp;lt; 2000 | eva type=if(like(host,"ssa%"), "TypeB", "TypeA") |stats avg(time_in_ms) AS  Avg_ms BY BusinessUnit,type | xyseries BusinessUnit type Avg_ms | eval diff=abs(TypeB-TypeA) | where diff&amp;gt;100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-data-sets-from-two-types-of-host/m-p/48078#M11480</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T16:54:51Z</dc:date>
    </item>
  </channel>
</rss>

