<?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: How to compare output of two splunk queries where nothing is common in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525839#M148405</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xyz and abc will return some integer value to me so I will compare like if xyz=abc&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 15:31:49 GMT</pubDate>
    <dc:creator>Emily12</dc:creator>
    <dc:date>2020-10-21T15:31:49Z</dc:date>
    <item>
      <title>How to compare output of two splunk queries where nothing is common</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525833#M148402</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I have 2 queries&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) mysearchquery | table xyz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) mysearchquery| table abc&lt;/P&gt;&lt;P&gt;And these two queries does not have anything common&lt;/P&gt;&lt;P&gt;I need to compare xyz and abc in a single query&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do that.&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525833#M148402</guid>
      <dc:creator>Emily12</dc:creator>
      <dc:date>2020-10-21T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare output of two splunk queries where nothing is common</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525837#M148403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227858"&gt;@Emily12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the two tables have nothing in common, what criteria are you going to use to compare them?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525837#M148403</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-21T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare output of two splunk queries where nothing is common</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525839#M148405</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xyz and abc will return some integer value to me so I will compare like if xyz=abc&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525839#M148405</guid>
      <dc:creator>Emily12</dc:creator>
      <dc:date>2020-10-21T15:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare output of two splunk queries where nothing is common</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525840#M148406</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; basically I want to know how to join the search query result of 2 queries&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525840#M148406</guid>
      <dc:creator>Emily12</dc:creator>
      <dc:date>2020-10-21T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare output of two splunk queries where nothing is common</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525846#M148410</link>
      <description>&lt;LI-CODE lang="markup"&gt;mysearchquery | table xyz
| join type=left [ mysearchquery | table abc ]&lt;/LI-CODE&gt;&lt;P&gt;Note that subsearches are limited by the number of events so if you can combine your two searches into one to do your calculations for xyz and abc it might be better&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525846#M148410</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-21T15:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare output of two splunk queries where nothing is common</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525965#M148450</link>
      <description>&lt;P&gt;If you are trying to add two numbers from two different searches it's highly likely you can do that in one search using stats.&lt;/P&gt;&lt;P&gt;Are you able to share more about each search?&lt;/P&gt;&lt;P&gt;Otherwise, you can do an append to combine the two outputs with something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval abc=100 | table abc
| append [| makeresults |eval xyz=45 | table xyz]
| stats sum(abc) as abc, sum(xyz) as xyz
| eval total = abc + zyz&lt;/LI-CODE&gt;&lt;P&gt;This search gets your first number, abc, then appends the second number, xyz.&lt;BR /&gt;Then we run stats to get them on one row, and finally do a simple eval for the total.&lt;BR /&gt;&lt;BR /&gt;You could then use this result in a single value visualization on a dashboard.&lt;/P&gt;&lt;P&gt;But as I mentioned, you can probably get both totals using stats. See &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/Search/Usestatswithevalexpressionsandfunctions" target="_blank" rel="noopener"&gt;docs&lt;/A&gt;&amp;nbsp;for more info.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 05:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-output-of-two-splunk-queries-where-nothing-is/m-p/525965#M148450</guid>
      <dc:creator>danspav</dc:creator>
      <dc:date>2020-10-22T05:17:19Z</dc:date>
    </item>
  </channel>
</rss>

