<?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: Search to compare fields where field1 has both entries in field2? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152450#M42722</link>
    <description>&lt;P&gt;Thanks a lot. It worked.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2014 09:15:46 GMT</pubDate>
    <dc:creator>karthik4455</dc:creator>
    <dc:date>2014-07-23T09:15:46Z</dc:date>
    <item>
      <title>Search to compare fields where field1 has both entries in field2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152446#M42718</link>
      <description>&lt;P&gt;I wish to run a query where I need to see if field1 has both entries in field2. Ex: I need to query the results like A &amp;amp; E which has both Escalated and Closed status. &lt;/P&gt;

&lt;P&gt;Field       status&lt;BR /&gt;
A       Escalated&lt;BR /&gt;
A       Closed&lt;BR /&gt;
B       Closed&lt;BR /&gt;
C       Escalated&lt;BR /&gt;
D       Escalated&lt;BR /&gt;
E       Escalated&lt;BR /&gt;
E       Closed&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152446#M42718</guid>
      <dc:creator>karthik4455</dc:creator>
      <dc:date>2014-07-22T13:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search to compare fields where field1 has both entries in field2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152447#M42719</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving fields 'Field' and 'status' | eventstats  count(status) as statusCount by Field | where statusCount &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search giving fields 'Field' and 'status' | stats values(status) as status by Field delim=" &amp;amp; " | where mvcount(status) &amp;gt; 1 | nomv status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152447#M42719</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-22T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search to compare fields where field1 has both entries in field2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152448#M42720</link>
      <description>&lt;P&gt;Can you tell me how I can filter the output as follows:&lt;BR /&gt;
You could notice the output doesn't have B,C &amp;amp; D because they should be dropped.&lt;/P&gt;

&lt;P&gt;A Escalated &amp;amp; Closed&lt;BR /&gt;
E Escalated &amp;amp; Closed&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152448#M42720</guid>
      <dc:creator>karthik4455</dc:creator>
      <dc:date>2014-07-22T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search to compare fields where field1 has both entries in field2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152449#M42721</link>
      <description>&lt;P&gt;Try the updated answer.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 14:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152449#M42721</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-22T14:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search to compare fields where field1 has both entries in field2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152450#M42722</link>
      <description>&lt;P&gt;Thanks a lot. It worked.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 09:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-compare-fields-where-field1-has-both-entries-in-field2/m-p/152450#M42722</guid>
      <dc:creator>karthik4455</dc:creator>
      <dc:date>2014-07-23T09:15:46Z</dc:date>
    </item>
  </channel>
</rss>

