<?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 two columns in two different table panels, and show the matching values in a different panel? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273584#M82499</link>
    <description>&lt;P&gt;How about using search for both the panels to populate 3rd panel? As far as I know, for simple xml, results for one panel can't be accessed in other panel. Could you post your current query ?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2015 22:05:00 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-10-15T22:05:00Z</dc:date>
    <item>
      <title>How to compare two columns in two different table panels, and show the matching values in a different panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273583#M82498</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have two different panels in a dashboard and the common field is a time field. I need to compare these two time fields, and if they match, I want to show the same matching values in a different panel.&lt;/P&gt;

&lt;P&gt;Your inputs will help me a lot!&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 14:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273583#M82498</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2015-10-15T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two columns in two different table panels, and show the matching values in a different panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273584#M82499</link>
      <description>&lt;P&gt;How about using search for both the panels to populate 3rd panel? As far as I know, for simple xml, results for one panel can't be accessed in other panel. Could you post your current query ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 22:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273584#M82499</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-15T22:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two columns in two different table panels, and show the matching values in a different panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273585#M82500</link>
      <description>&lt;P&gt;Thanks for your reply:&lt;/P&gt;

&lt;P&gt;First Panel Query : index=xyz host=abc condition1 | table rtime,def&lt;BR /&gt;
Second Panel Query : index=xyz host=abc condition2 | table stime,ghi&lt;/P&gt;

&lt;P&gt;I need to comparre rtime and stime from two panels and project common values in third panel.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 04:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273585#M82500</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2015-10-16T04:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two columns in two different table panels, and show the matching values in a different panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273586#M82501</link>
      <description>&lt;P&gt;As @somesoni2 said, you can't actually compare across panels in a dashboard. But you could create a third panel, with this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz host=abc (condition1) OR (condition2) 
| eval commonTime = coalesce(rtime,stime)
| stats values(def) as DEF values(ghi) AS GHI by commonTime
| where isnotull(DEF) AND isnotnull(GHI)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that the above search requires an exact match of the time fields. Often, times may vary by as much as a few seconds and still be considered a match. If this is true in your case, you might want to use the the &lt;CODE&gt;bin&lt;/CODE&gt; command to "round" the time. To "round" to the second, insert the following as the third command in the sequence:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin span=1s commonTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 06:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273586#M82501</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-10-16T06:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two columns in two different table panels, and show the matching values in a different panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273587#M82502</link>
      <description>&lt;P&gt;Thanks a lot lguinn, it is very helpful!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2015 20:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-columns-in-two-different-table-panels-and/m-p/273587#M82502</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2015-10-17T20:03:23Z</dc:date>
    </item>
  </channel>
</rss>

