<?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: Compare columns in same table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479121#M134312</link>
    <description>&lt;P&gt;Turns out that one of my column names came from a json. Something like this: &lt;BR /&gt;
|spath "object.property"| ....|table "object.property",column2&lt;/P&gt;

&lt;P&gt;and oda's solution was not working at first until I did&lt;/P&gt;

&lt;P&gt;|spath "object.property" output column1 | table column1,column2 &lt;/P&gt;

&lt;P&gt;My bad for not providing more info. Looks like to compare both things have to be strings and for some reason you cannot just use the path in the json&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 19:09:29 GMT</pubDate>
    <dc:creator>carlospalma03</dc:creator>
    <dc:date>2020-02-26T19:09:29Z</dc:date>
    <item>
      <title>Compare columns in same table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479119#M134310</link>
      <description>&lt;P&gt;Hello, I have the following table:&lt;/P&gt;

&lt;P&gt;column1   column2&lt;/P&gt;

&lt;P&gt;Andrew    Andrew&lt;BR /&gt;
George    George&lt;BR /&gt;
Paris        Berlin&lt;/P&gt;

&lt;P&gt;I would like to get as output the following:&lt;/P&gt;

&lt;P&gt;column 1   column2 &lt;/P&gt;

&lt;P&gt;Paris          Berlin&lt;/P&gt;

&lt;P&gt;Tables come from the use of the | table command&lt;/P&gt;

&lt;P&gt;| table column1,column2&lt;/P&gt;

&lt;P&gt;Is there any way this can be done?&lt;/P&gt;

&lt;P&gt;I tried   | table column1, column2  | where NOT match(column1,column2) but no results are found&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 00:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479119#M134310</guid>
      <dc:creator>carlospalma03</dc:creator>
      <dc:date>2020-02-26T00:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare columns in same table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479120#M134311</link>
      <description>&lt;P&gt;Try the following command.&lt;/P&gt;

&lt;P&gt;| table column1, column2 |where  column1!= column2&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 00:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479120#M134311</guid>
      <dc:creator>oda</dc:creator>
      <dc:date>2020-02-26T00:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare columns in same table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479121#M134312</link>
      <description>&lt;P&gt;Turns out that one of my column names came from a json. Something like this: &lt;BR /&gt;
|spath "object.property"| ....|table "object.property",column2&lt;/P&gt;

&lt;P&gt;and oda's solution was not working at first until I did&lt;/P&gt;

&lt;P&gt;|spath "object.property" output column1 | table column1,column2 &lt;/P&gt;

&lt;P&gt;My bad for not providing more info. Looks like to compare both things have to be strings and for some reason you cannot just use the path in the json&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 19:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-columns-in-same-table/m-p/479121#M134312</guid>
      <dc:creator>carlospalma03</dc:creator>
      <dc:date>2020-02-26T19:09:29Z</dc:date>
    </item>
  </channel>
</rss>

