<?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: Exclude certain log with specific attribute from a search that has mutiple sources in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491582#M83981</link>
    <description>&lt;P&gt;Has your goal been achieved? if that is, please accept the answer.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 07:06:02 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-01-27T07:06:02Z</dc:date>
    <item>
      <title>Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491579#M83978</link>
      <description>&lt;P&gt;I am trying creating a report that will run on schedule which combines different sourcetype to run from the datamodel like below. &lt;/P&gt;

&lt;P&gt;| datamodel Email All_Email search&lt;BR /&gt;
| search sourcetype = "ms0365log OR sourcetype = "emaillog" OR sourcetype=exchange2019 OR sourcetype=maillog&lt;/P&gt;

&lt;P&gt;In the sourcetype=maillog i want during the search to exclude any maillog event that has final_rule!=scanning  from the result. When I run the below command for one sourcetype it works well, but when I add the mutiple source type like above it fails. &lt;/P&gt;

&lt;P&gt;Single sourcetype works fine &lt;BR /&gt;
| datamodel Email All_Email search&lt;BR /&gt;
| search sourcetype = "maillog"  |spath final_rule | search final_rule!=scanning&lt;/P&gt;

&lt;P&gt;Multiple sourcetype fails &lt;/P&gt;

&lt;P&gt;| datamodel Email All_Email search&lt;BR /&gt;
| search sourcetype = "ms0365log OR sourcetype = "emaillog" OR sourcetype=exchange2019 OR sourcetype=maillog "|spath final_rule | search final_rule!=scanning"&lt;BR /&gt;
|&lt;BR /&gt;
any ideas and I don't mind removing spath &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491579#M83978</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-09-30T03:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491580#M83979</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| datamodel Email All_Email search
| search "ms0365log" OR "emaillog" OR "exchange2019" OR "maillog"
| spath final_rule 
| search final_rule!=scanning
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;why don't you search strings?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 06:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491580#M83979</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-27T06:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491581#M83980</link>
      <description>&lt;P&gt;@to4kawa  When i used the search strings you gave above all other sourcetype events are not searched. I guess they are excluded because the other sourcetype do not have final_rule field . &lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 06:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491581#M83980</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-01-27T06:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491582#M83981</link>
      <description>&lt;P&gt;Has your goal been achieved? if that is, please accept the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 07:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491582#M83981</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-27T07:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491583#M83982</link>
      <description>&lt;P&gt;No it has not been achieved as I only want logs from maillog that has the field final_rule=scanning to be excluded from the report , but now what happens is that the other source type entirely are all excluded as well, which is not what I want . I want to exclusion to be specific to one particular sourtcetype. &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491583#M83982</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-01-27T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491584#M83983</link>
      <description>&lt;P&gt;I am not sure the results OK.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | datamodel Email All_Email search
 | search "ms0365log" OR "emaillog" OR "exchange2019" OR "maillog"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is OK?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491584#M83983</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-27T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491585#M83984</link>
      <description>&lt;P&gt;That works fine but the events with this fields "final_rule!=scanning" from maillog is not excluded which is what am trying to achieve. Thanks for your reply&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491585#M83984</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-01-27T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain log with specific attribute from a search that has mutiple sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491586#M83985</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; | datamodel Email All_Email search
 | search "ms0365log" OR "emaillog" OR "exchange2019" OR "maillog"
 | search NOT ( "final_rule" AND "scanning") 
 | spath final_rule
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How's this?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-certain-log-with-specific-attribute-from-a-search-that/m-p/491586#M83985</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-27T12:39:52Z</dc:date>
    </item>
  </channel>
</rss>

