<?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 exclude results if some conditions? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613315#M213150</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can see in the screen attached the result returns the specified user with src=dest. Have you any other advice?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 20:37:51 GMT</pubDate>
    <dc:creator>marco_massari11</dc:creator>
    <dc:date>2022-09-15T20:37:51Z</dc:date>
    <item>
      <title>How to exclude results if some conditions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613259#M213126</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have the following saved search:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=true fillnull_value="N/D" count from datamodel=Change where NOT [|`change_whitelist_generic`] nodename="All_Changes.Account_Management.Accounts_Updated" AND All_Changes.log_region=* AND All_Changes.log_country=* AND (All_Changes.command=passwd OR All_Changes.result_id IN (4723, 4724)) by All_Changes.log_region, All_Changes.log_country, index, host, All_Changes.Account_Management.src_user, All_Changes.user, _time
| `drop_dm_object_name("All_Changes")`
| rename Account_Management.src_user as src_user

&lt;/LI-CODE&gt;
&lt;P&gt;My customer asked to me to exclude results when&amp;nbsp;Account_Management.src_user=user1 and&amp;nbsp;All_Changes.Account_Management.src_nt_domain=All_Changes.Account_Management.dest_nt_domain. So I tried something like that but it seems not working:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=true fillnull_value="N/D" count from datamodel=Change where NOT
[| `change_whitelist_generic`] nodename="All_Changes.Account_Management.Accounts_Updated" AND All_Changes.log_region=* AND All_Changes.log_country=* AND (All_Changes.command=passwd OR All_Changes.result_id IN (4723, 4724)) by All_Changes.log_region, All_Changes.log_country, index, host, All_Changes.Account_Management.src_user, All_Changes.user, All_Changes.Account_Management.dest_nt_domain, All_Changes.Account_Management.src_nt_domain, _time
| `drop_dm_object_name("All_Changes")`
| search NOT (Account_Management.src_user=user1 AND Account_Management.src_nt_domain=Account_Management.dest_nt_domain)
| rename Account_Management.src_user as src_user



&lt;/LI-CODE&gt;
&lt;P&gt;Have you any advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 16:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613259#M213126</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2022-09-15T16:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results if some conditions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613283#M213135</link>
      <description>&lt;P&gt;What does "not working" mean?&amp;nbsp; Are you getting expected results or not?&amp;nbsp; If not, how do the results not meet expectations?&lt;/P&gt;&lt;P&gt;The new criteria likely is failing because the &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command does not allow a field name on both sides of the expression.&amp;nbsp; Use &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613283#M213135</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-15T17:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results if some conditions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613304#M213147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;"not working" means that in the result I always have the events where src_user=user1 and src=dest. How can I specify it with where?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 18:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613304#M213147</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2022-09-15T18:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results if some conditions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613305#M213148</link>
      <description>&lt;P&gt;As mentioned in my previous reply, use &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; in place of &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=true fillnull_value="N/D" count from datamodel=Change where NOT
[| `change_whitelist_generic`] nodename="All_Changes.Account_Management.Accounts_Updated" AND All_Changes.log_region=* AND All_Changes.log_country=* AND (All_Changes.command=passwd OR All_Changes.result_id IN (4723, 4724)) by All_Changes.log_region, All_Changes.log_country, index, host, All_Changes.Account_Management.src_user, All_Changes.user, All_Changes.Account_Management.dest_nt_domain, All_Changes.Account_Management.src_nt_domain, _time
| `drop_dm_object_name("All_Changes")`
| where NOT (Account_Management.src_user=user1 AND Account_Management.src_nt_domain=Account_Management.dest_nt_domain)
| rename Account_Management.src_user as src_user&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Sep 2022 19:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613305#M213148</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-15T19:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results if some conditions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613315#M213150</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can see in the screen attached the result returns the specified user with src=dest. Have you any other advice?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 20:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613315#M213150</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2022-09-15T20:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results if some conditions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613324#M213151</link>
      <description>&lt;P&gt;If the target user name is going to be a literal then it should be in quotation marks.&amp;nbsp; Also, sometimes the dot notation produces unexpected results so try renaming fields to not have dots in the names.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats summariesonly=true fillnull_value="N/D" count from datamodel=Change where NOT
[| `change_whitelist_generic`] nodename="All_Changes.Account_Management.Accounts_Updated" AND All_Changes.log_region=* AND All_Changes.log_country=* AND (All_Changes.command=passwd OR All_Changes.result_id IN (4723, 4724)) by All_Changes.log_region, All_Changes.log_country, index, host, All_Changes.Account_Management.src_user, All_Changes.user, All_Changes.Account_Management.dest_nt_domain, All_Changes.Account_Management.src_nt_domain, _time
| `drop_dm_object_name("All_Changes")`
| rename Account_Management.* as *
| where NOT (src_user="user1" AND src_nt_domain=dest_nt_domain)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Sep 2022 23:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-if-some-conditions/m-p/613324#M213151</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-15T23:56:41Z</dc:date>
    </item>
  </channel>
</rss>

