<?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 compare two searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/compare-two-searches/m-p/117638#M31348</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;
I  want to compare the results of the first search to the second. Like loop through the second one with the first ones results &lt;/P&gt;

&lt;P&gt;Something like this,&lt;BR /&gt;
Index=index1| eval val1=substr(value, 0,1) [search index=index2| eval val2=substr(value2, 2,1) | eval match=if(val1==val2, 1,0)]&lt;/P&gt;

&lt;P&gt;Thanks! &lt;/P&gt;</description>
    <pubDate>Tue, 24 Jun 2014 14:09:49 GMT</pubDate>
    <dc:creator>zuzgon2</dc:creator>
    <dc:date>2014-06-24T14:09:49Z</dc:date>
    <item>
      <title>compare two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-two-searches/m-p/117638#M31348</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
I  want to compare the results of the first search to the second. Like loop through the second one with the first ones results &lt;/P&gt;

&lt;P&gt;Something like this,&lt;BR /&gt;
Index=index1| eval val1=substr(value, 0,1) [search index=index2| eval val2=substr(value2, 2,1) | eval match=if(val1==val2, 1,0)]&lt;/P&gt;

&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:09:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-two-searches/m-p/117638#M31348</guid>
      <dc:creator>zuzgon2</dc:creator>
      <dc:date>2014-06-24T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: compare two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-two-searches/m-p/117639#M31349</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1| eval val1=substr(value, 0,1) | eval joinfield=1 | join max=0 joinfield [search index=index2| eval val2=substr(value2, 2,1) | eval joinfield=1] | eval match=if(val1==val2, 1,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-two-searches/m-p/117639#M31349</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-24T14:33:15Z</dc:date>
    </item>
  </channel>
</rss>

