<?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: Compare fields in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79070#M181672</link>
    <description>&lt;PRE&gt;&lt;CODE&gt; ... | stats count by sessionid host | eventcount dc(host) as hc by sessionid | where hc &amp;gt;= 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or you could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | values(host) as hosts by sessionid | where mvcount(hosts) &amp;gt;= 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but that gives you a less flexible set of results.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2012 20:56:01 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-10-03T20:56:01Z</dc:date>
    <item>
      <title>Compare fields in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79069#M181671</link>
      <description>&lt;P&gt;I have a table generated from two fields, sessionid and host - &lt;/P&gt;

&lt;P&gt;... | stats count by sessionid host&lt;/P&gt;

&lt;P&gt;I am trying to find only the sessionids that appear on more than one host. So basically, I need to compare each sessionid/host pair that appears in the logs with subsequent pairs for the same sessionid, but a different host. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 20:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79069#M181671</guid>
      <dc:creator>ejread</dc:creator>
      <dc:date>2012-10-03T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare fields in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79070#M181672</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; ... | stats count by sessionid host | eventcount dc(host) as hc by sessionid | where hc &amp;gt;= 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or you could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | values(host) as hosts by sessionid | where mvcount(hosts) &amp;gt;= 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but that gives you a less flexible set of results.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 20:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79070#M181672</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-10-03T20:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare fields in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79071#M181673</link>
      <description>&lt;P&gt;This will give you what you are looking for. &lt;/P&gt;

&lt;P&gt;... | transaction pdsessionid maxspan=30s maxpause=5s | eval hcount = mvcount(host) | where hcount &amp;gt; 1&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2012 20:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-fields-in-a-table/m-p/79071#M181673</guid>
      <dc:creator>ldurrani</dc:creator>
      <dc:date>2012-10-04T20:06:16Z</dc:date>
    </item>
  </channel>
</rss>

