<?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 edit my search to filter out events where the string values between two fields are the same? (field names contain spaces) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271585#M81763</link>
    <description>&lt;P&gt;Thank you, this helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 02:56:53 GMT</pubDate>
    <dc:creator>caliburn7</dc:creator>
    <dc:date>2016-05-27T02:56:53Z</dc:date>
    <item>
      <title>How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271581#M81759</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to filter out events when the source username and destination username are the same, but it is not working when I use the &lt;CODE&gt;where&lt;/CODE&gt; and &lt;CODE&gt;NOT field1= field2&lt;/CODE&gt; function. Is it because I have spaces in the field names? I tried to rename them as different fields and tried the where clause, but it still didn't work. Any help is greatly appreciated.&lt;/P&gt;

&lt;P&gt;Here is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| NOT ("Source User Name"="ANONYMOUS LOGON" OR "Source User Name"=*$)  Name!="A user account was changed."   | stats dc(Name) as UniqueActionCount, values(Name) as UniqueAction by "Source User Name" | where NOT "Source User Name"="Destination User Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 00:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271581#M81759</guid>
      <dc:creator>caliburn7</dc:creator>
      <dc:date>2016-05-27T00:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271582#M81760</link>
      <description>&lt;P&gt;Try putting single quotes around your fields. Like below. But what is &lt;CODE&gt;*$&lt;/CODE&gt;"?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where NOT ('Source User Name'='ANONYMOUS LOGON' OR 'Source User Name'="*$") AND Name!="A user account was changed."   | stats dc(Name) as UniqueActionCount, values(Name) as UniqueAction by "Source User Name" | where NOT 'Source User Name'='Destination User Name'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2016 01:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271582#M81760</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-27T01:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271583#M81761</link>
      <description>&lt;P&gt;Issue 1: After your stats there is no field called "Destination User Name", so even if the where syntax was correct, it will not give you any result&lt;BR /&gt;
Issue 2. In where clause, fields names should be enclosed in single quotes if they contain spaces/dots etc.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 01:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271583#M81761</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-27T01:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271584#M81762</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | search NOT ("Source User Name"="ANONYMOUS LOGON" OR "Source User Name"=*$)  Name!="A user account was changed." | stats dc(Name) as UniqueActionCount, values(Destination User Name) AS "Destination User Name" values(Name) as UniqueAction by "Source User Name" | where NOT $Source User Name$=$Destination User Name$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2016 02:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271584#M81762</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-27T02:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271585#M81763</link>
      <description>&lt;P&gt;Thank you, this helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 02:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271585#M81763</guid>
      <dc:creator>caliburn7</dc:creator>
      <dc:date>2016-05-27T02:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271586#M81764</link>
      <description>&lt;P&gt;Thank you, this helped!&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 02:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271586#M81764</guid>
      <dc:creator>caliburn7</dc:creator>
      <dc:date>2016-05-27T02:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to filter out events where the string values between two fields are the same? (field names contain spaces)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271587#M81765</link>
      <description>&lt;P&gt;username=*$ was to filter all usernames that end with $, which are system authentications, and when not an actual user is present.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 02:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-filter-out-events-where-the-string/m-p/271587#M81765</guid>
      <dc:creator>caliburn7</dc:creator>
      <dc:date>2016-05-27T02:59:01Z</dc:date>
    </item>
  </channel>
</rss>

