<?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: Join 2 searches and finding the difference in the output. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158699#M44738</link>
    <description>&lt;P&gt;could be try it without the star/wildcard and use the value you need instaed&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2014 12:27:47 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-12-15T12:27:47Z</dc:date>
    <item>
      <title>Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158691#M44730</link>
      <description>&lt;P&gt;I want to join 2 queries by a common field and the counts of the searches are different. I want to work on the dataset which does not join.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 09:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158691#M44730</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158692#M44731</link>
      <description>&lt;P&gt;What do you mean by missing ? You lose the rows after you perform a join ? &lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158692#M44731</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2014-12-15T10:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158693#M44732</link>
      <description>&lt;P&gt;My two searches are here.&lt;/P&gt;

&lt;P&gt;index=xyz event="NEAT-IN" platform="APNS" | join type=inner platform,batch [search index=xyz event="push*"] | stats count(event)&lt;/P&gt;

&lt;P&gt;Each individual query count is different but when joined it always counts the joined count as the largest count.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158693#M44732</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T10:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158694#M44733</link>
      <description>&lt;P&gt;I have 2 searches and there counts are different. I want to find the rows which don't join. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158694#M44733</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158695#M44734</link>
      <description>&lt;P&gt;event="NEAT-IN" has 578 count&lt;BR /&gt;
event="pushApns" has only 488 count&lt;BR /&gt;
I want to know which 578-488 are the missing ones and do further query on them&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158695#M44734</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158696#M44735</link>
      <description>&lt;P&gt;Not understanding how the count got goofed up&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158696#M44735</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T10:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158697#M44736</link>
      <description>&lt;P&gt;no need to join, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz event="NEAT-IN" platform="APNS"  OR event="push*" 
| stats count(eval(event="NEAT-IN")) AS count_NEAT count(eval(event="push*")) AS count_push by platform, batch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS &lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158697#M44736</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T10:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158698#M44737</link>
      <description>&lt;P&gt;@Mus Executed the query but count_push is coming as zero . Looks like splunk does not do count(eval(event="push*"))&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 12:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158698#M44737</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158699#M44738</link>
      <description>&lt;P&gt;could be try it without the star/wildcard and use the value you need instaed&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 12:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158699#M44738</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T12:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158700#M44739</link>
      <description>&lt;P&gt;or try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz event="NEAT-IN" platform="APNS"  OR event="push*" 
 | stats count(eval(event="NEAT-IN")) AS count_NEAT count(eval(if(match(event, push) , 1, 0 ))) AS count_push by platform, batch
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Dec 2014 12:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158700#M44739</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T12:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158701#M44740</link>
      <description>&lt;P&gt;Now both counts are coming as 578. &lt;/P&gt;

&lt;P&gt;Query used:&lt;BR /&gt;
index=xyz event="NEAT-IN" platform="APNS"  OR event="push*" &lt;BR /&gt;
  | stats count(eval(event="NEAT-IN")) AS count_NEAT count(eval(if(match(event, push) , 1, 0 ))) AS count_push by platform&lt;/P&gt;

&lt;P&gt;The output is 578,578 . This is not correct &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;It should be 578,488&lt;/P&gt;

&lt;P&gt;Any Idea what is happening. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:26:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158701#M44740</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2020-09-28T18:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158702#M44741</link>
      <description>&lt;P&gt;No, can you provide some samples of your events?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 12:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158702#M44741</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158703#M44742</link>
      <description>&lt;P&gt;NEAT-IN&lt;/P&gt;

&lt;P&gt;&amp;lt;167&amp;gt;1 2014-12-14T18:23:49.908-07:00 x.y.com neat 901 apns [meta@28281 sequenceId="69599" sysUpTime="1109890868"][analytics@28281 event="NEAT-IN" platform="APNS"] {"timestamp":"1418606629897","platform":"apns","alertId":"1404841346","appId":"appId","args":{"time":"1418606629788","batch":"48288","tms_id":"tmsId","src":"src"},"deviceToken":"devToken","alert":"Exciting Game"}&lt;/P&gt;

&lt;P&gt;pushApns&lt;/P&gt;

&lt;P&gt;&amp;lt;167&amp;gt;1 2014-12-14T18:23:49.909-07:00 x.y.com neat 6627 apns [meta@28281 sequenceId="71272" sysUpTime="1109890867"][analytics@28281 event="pushApns" platform="APNS" outcome="0" errorCode="0" errorDesc="Push to apns success" errorContext="TCP-SSL" operation="PUSH_APNS" opTime="0" startTime="1418606629908" appId="appId" deviceToken="devToken" args="{\"time\":\"1418606629788\",\"batch\":\"48288\",\"tms_id\":\"tms_id\",\"src\":\"src\"}" txId="2099269910"] &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158703#M44742</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2020-09-28T18:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158704#M44743</link>
      <description>&lt;P&gt;this should provide the correct count:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz event="NEAT-IN" OR event="pushApns" platform="APNS" 
| stats count(eval(event="NEAT-IN")) AS count_NEAT count(event="pushApns") AS count_push
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Dec 2014 13:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158704#M44743</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T13:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158705#M44744</link>
      <description>&lt;P&gt;Why not the previous one.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 14:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158705#M44744</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158706#M44745</link>
      <description>&lt;P&gt;because &lt;CODE&gt;count(event="pushApns")&lt;/CODE&gt; is not the same like &lt;CODE&gt;count(eval(if(match(event, push) , 1, 0 )))&lt;/CODE&gt;&lt;BR /&gt;
the first will match only the &lt;CODE&gt;event&lt;/CODE&gt; field which contains &lt;CODE&gt;pushApns&lt;/CODE&gt; but the later will match any &lt;CODE&gt;event&lt;/CODE&gt; field containing &lt;CODE&gt;push&lt;/CODE&gt; like &lt;CODE&gt;foopush&lt;/CODE&gt; or &lt;CODE&gt;pushbaz&lt;/CODE&gt; or &lt;CODE&gt;pushApns&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 14:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158706#M44745</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T14:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches and finding the difference in the output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158707#M44746</link>
      <description>&lt;P&gt;But event can be only pushApns or NEAT-IN&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 14:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-and-finding-the-difference-in-the-output/m-p/158707#M44746</guid>
      <dc:creator>arungeorge09</dc:creator>
      <dc:date>2014-12-15T14:54:52Z</dc:date>
    </item>
  </channel>
</rss>

