<?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 do you find the same field values but are in two different fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304699#M91586</link>
    <description>&lt;P&gt;If you just want to find events where the value in field1 matches the value in field2, that's very easy:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search that returns the events 
| where field1=field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;where&lt;/CODE&gt; command will allow you to compare the values of the two fields.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 14:51:36 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2018-02-22T14:51:36Z</dc:date>
    <item>
      <title>How do you find the same field values but are in two different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304698#M91585</link>
      <description>&lt;P&gt;I am trying to run a search to find the same field values will give me some results. An example would be if I wanted to see if an admin added himself to another group but it should have been someone else adding them. I am not sure how I would write something like that.&lt;/P&gt;

&lt;P&gt;So something like if I have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field1=x and field2=y ignore 

field1=x and fielAny thoughts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304698#M91585</guid>
      <dc:creator>HealyManTech</dc:creator>
      <dc:date>2018-02-22T14:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the same field values but are in two different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304699#M91586</link>
      <description>&lt;P&gt;If you just want to find events where the value in field1 matches the value in field2, that's very easy:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search that returns the events 
| where field1=field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;where&lt;/CODE&gt; command will allow you to compare the values of the two fields.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304699#M91586</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-02-22T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the same field values but are in two different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304700#M91587</link>
      <description>&lt;P&gt;Worked thanks.&lt;/P&gt;

&lt;P&gt;Just an FYI for anyone make sure you put that in before you table if you don't have those fields in your table command.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 17:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304700#M91587</guid>
      <dc:creator>HealyManTech</dc:creator>
      <dc:date>2018-02-22T17:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the same field values but are in two different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304701#M91588</link>
      <description>&lt;P&gt;Good reminder for folks. Any &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Commandsbytype#Transforming_commands"&gt;transforming commands&lt;/A&gt; will potentially remove fields, so you must be careful to ensure you know which fields need to be preserved as you use them.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 17:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-find-the-same-field-values-but-are-in-two-different/m-p/304701#M91588</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-02-22T17:18:19Z</dc:date>
    </item>
  </channel>
</rss>

