<?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: What is the command to check if a field exists in one column but not in the other column? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203859#M59208</link>
    <description>&lt;P&gt;try this....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearch | table source, target | where source!=target
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Sep 2016 16:00:56 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2016-09-20T16:00:56Z</dc:date>
    <item>
      <title>What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203857#M59206</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;what is the command to check if a field exists in one column but not the other?&lt;/P&gt;

&lt;P&gt;for example, to count the "10.2.3.3" because it exists in the source column but not in the target column :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source_             |target
10.1.2.3             |10.1.2.3
10.2.3.3             |10.2.2.2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 15:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203857#M59206</guid>
      <dc:creator>avivn</dc:creator>
      <dc:date>2016-09-20T15:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203858#M59207</link>
      <description>&lt;P&gt;There won't be a straight forward command to the comparison. Try this subsearch method&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | where NOT [search yourbasesearch | stats count by target | table target | rename target as source] | stats count by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 16:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203858#M59207</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-20T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203859#M59208</link>
      <description>&lt;P&gt;try this....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearch | table source, target | where source!=target
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 16:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203859#M59208</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-20T16:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203860#M59209</link>
      <description>&lt;P&gt;not working ,,,,&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203860#M59209</guid>
      <dc:creator>avivn</dc:creator>
      <dc:date>2016-09-21T07:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203861#M59210</link>
      <description>&lt;P&gt;not working ...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203861#M59210</guid>
      <dc:creator>avivn</dc:creator>
      <dc:date>2016-09-21T07:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203862#M59211</link>
      <description>&lt;P&gt;You simply want to list or you want to count as well?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203862#M59211</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-21T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203863#M59212</link>
      <description>&lt;P&gt;I downvoted this post because not an answer&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/203863#M59212</guid>
      <dc:creator>sjalexander</dc:creator>
      <dc:date>2016-09-21T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/510956#M143109</link>
      <description>&lt;P&gt;Although the question is 4 years old I had encountered something similar for an Alert. Please try this&lt;/P&gt;&lt;P&gt;| makeresults count=10&lt;BR /&gt;| streamstats count as temp&lt;BR /&gt;| eval temp1=abs(10-temp)&lt;BR /&gt;| eval ip1="10.10."+temp+"."+temp1&lt;BR /&gt;| eval ip2="10.10.7.".temp&lt;BR /&gt;| stats values(ip1) as ip1, values(ip2) as ip2&lt;BR /&gt;| mvexpand ip1&lt;BR /&gt;| mvexpand ip2&lt;BR /&gt;| where ip1 = ip2&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 16:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/510956#M143109</guid>
      <dc:creator>sidbisht</dc:creator>
      <dc:date>2020-07-25T16:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to check if a field exists in one column but not in the other column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/510985#M143118</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults count=10
| streamstats count as temp
| eval temp1=abs(10-temp)
| eval ip1="10.10."+temp+"."+temp1
| eval ip2="10.10.7.".temp
| eventstats values(ip2) as tmp
| stats count(eval(match(tmp,ip1))) as count list(ip2) as ip2 values(temp) as temp by ip1
| sort temp
| fields - temp&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224094"&gt;@sidbisht&lt;/a&gt;&amp;nbsp; your creating&amp;nbsp;&lt;STRONG&gt;temp1 &lt;/STRONG&gt;is interesting.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How about this query?&lt;BR /&gt;For comparing fields, make multi value and use &lt;STRONG&gt;match()&lt;/STRONG&gt;, I think.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 01:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-command-to-check-if-a-field-exists-in-one-column-but/m-p/510985#M143118</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-26T01:37:23Z</dc:date>
    </item>
  </channel>
</rss>

