<?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: Issue excluding Windows events for a specific new process in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/680889#M113757</link>
    <description>&lt;P&gt;I did get the exclusion under inputs.conf to work with different indexes using this format, just with double slashes rather than triple or quadruple, so there's just an issue with how my Windows security events are setup.&lt;/P&gt;&lt;P&gt;We're upgrading to v9.2 soon in case it's an issue with the arbitrary formatting of the Forwarded Events channel from the v9.1 update. The inputs.conf exclusion seems to work with everything else.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 23:29:10 GMT</pubDate>
    <dc:creator>SplunkUser5</dc:creator>
    <dc:date>2024-03-15T23:29:10Z</dc:date>
    <item>
      <title>Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678290#M113347</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
&lt;P&gt;I'm running into trouble excluding new process creation events for Teams from being indexed. It's an expected application and starts at logon so we're not super worried about it.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I've looked at a handful of community articles, tried what was posted, and I'm stumped. My regex syntax looks fine, but Splunk still isn't excluding the events. Here's what I've tried so far:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_____inputs.conf_____

blacklist3 = EventCode="4688" new_process_name=".*Teams.exe"

blacklist3 = $XmlRegex="&amp;lt;EventID&amp;gt;4688&amp;lt;\/EventID&amp;gt;.*&amp;lt;Data Name='NewProcessName'&amp;gt;C:\\Users\\.*\\AppData\\Local\\Microsoft\\Teams\\current\\Teams\.exe&amp;lt;\/Data&amp;gt;"

blacklist3 = $XmlRegex="&amp;lt;EventID&amp;gt;4688&amp;lt;\/EventID&amp;gt;.*&amp;lt;DataName='NewProcessName'&amp;gt;C:\\Users\\.*\\AppData\\Local\\Microsoft\\Teams\\current\\Teams\.exe&amp;lt;\/Data&amp;gt;"

blacklist3 = EventCode="4688" $XmlRegex="Name=\'NewProcessName\'&amp;gt;C:\\Users\\.*\\AppData\\Local\\Microsoft\\Teams\\current\\Teams.exe&amp;lt;\/Data&amp;gt;"


None of these have worked. I found a couple community articles saying props.conf and transforms.conf was the proper way to filter out events so I tried these as well:

_____props.conf_____

[WinEventLog:Security]
TRANSFORMS-null = 4688cleanup

_____transforms.conf_____

[4688cleanup]
REGEX = "Teams\.exe&amp;lt;\/Data&amp;gt;"
DEST_KEY = queue
FORMAT = nullQueue


And this:

_____transforms.conf_____

[4688cleanup]
REGEX = &amp;lt;EventID&amp;gt;4688&amp;lt;\/EventID&amp;gt;.*&amp;lt;DataName='NewProcessName'&amp;gt;C:\\Users\\.*\\AppData\\Local\\Microsoft\\Teams\\current\\Teams\.exe&amp;lt;\/Data&amp;gt;
DEST_KEY = queue
FORMAT = nullQueue


&lt;/LI-CODE&gt;
&lt;P&gt;None of these have worked so far and I'd appreciate any input y'all have.&lt;/P&gt;
&lt;P&gt;Here is a copy of an event I'm trying to exclude from being indexed (Teams.exe as a new process):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;Event xmlns='http:// schemas .microsoft .com/win/2004/08/events/event '&amp;gt;&amp;lt;System&amp;gt;&amp;lt;Provider Name='Microsoft-Windows-Security-Auditing' Guid='{54849625-5478-4994-a5ba-3e3b0328c30d}'/&amp;gt;&amp;lt;EventID&amp;gt;4688&amp;lt;/EventID&amp;gt;&amp;lt;Version&amp;gt;2&amp;lt;/Version&amp;gt;&amp;lt;Level&amp;gt;0&amp;lt;/Level&amp;gt;&amp;lt;Task&amp;gt;13312&amp;lt;/Task&amp;gt;&amp;lt;Opcode&amp;gt;0&amp;lt;/Opcode&amp;gt;&amp;lt;Keywords&amp;gt;0x8020000000000000&amp;lt;/Keywords&amp;gt;&amp;lt;TimeCreated SystemTime='2024-02-21T22:11:25.7542758Z'/&amp;gt;&amp;lt;EventRecordID&amp;gt;4096881&amp;lt;/EventRecordID&amp;gt;&amp;lt;Correlation/&amp;gt;&amp;lt;Execution ProcessID='4' ThreadID='1124'/&amp;gt;&amp;lt;Channel&amp;gt;Security&amp;lt;/Channel&amp;gt;&amp;lt;Computer&amp;gt;{Device_FQDN}&amp;lt;/Computer&amp;gt;&amp;lt;Security/&amp;gt;&amp;lt;/System&amp;gt;&amp;lt;EventData&amp;gt;&amp;lt;Data Name='SubjectUserSid'&amp;gt;S-1-1-11-111111111-111111111-1111111111-111111&amp;lt;/Data&amp;gt;&amp;lt;Data Name='SubjectUserName'&amp;gt;{user}&amp;lt;/Data&amp;gt;&amp;lt;Data Name='SubjectDomainName'&amp;gt;{Domain}&amp;lt;/Data&amp;gt;&amp;lt;Data Name='SubjectLogonId'&amp;gt;0x11111111&amp;lt;/Data&amp;gt;&amp;lt;Data Name='NewProcessId'&amp;gt;0x5864&amp;lt;/Data&amp;gt;&amp;lt;Data Name='NewProcessName'&amp;gt;C:\Users\{user}\AppData\Local\Microsoft\Teams\current\Teams.exe&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TokenElevationType'&amp;gt;%%1936&amp;lt;/Data&amp;gt;&amp;lt;Data Name='ProcessId'&amp;gt;0x4604&amp;lt;/Data&amp;gt;&amp;lt;Data Name='CommandLine'&amp;gt;&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetUserSid'&amp;gt;S-1-0-0&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetUserName'&amp;gt;-&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetDomainName'&amp;gt;-&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetLogonId'&amp;gt;0x0&amp;lt;/Data&amp;gt;&amp;lt;Data Name='ParentProcessName'&amp;gt;C:\Users\{user}\AppData\Local\Microsoft\Teams\current\Teams.exe&amp;lt;/Data&amp;gt;&amp;lt;Data Name='MandatoryLabel'&amp;gt;S-1-11-1111&amp;lt;/Data&amp;gt;&amp;lt;/EventData&amp;gt;&amp;lt;/Event&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;And a copy of an event we'd like to keep (Teams.exe as a parent process, but not the new process):&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;Event xmlns='http:// schemas .microsoft .com/win/2004/08/events/event '&amp;gt;&amp;lt;System&amp;gt;&amp;lt;Provider Name='Microsoft-Windows-Security-Auditing' Guid='{54849625-5478-4994-a5ba-3e3b0328c30d}'/&amp;gt;&amp;lt;EventID&amp;gt;4688&amp;lt;/EventID&amp;gt;&amp;lt;Version&amp;gt;2&amp;lt;/Version&amp;gt;&amp;lt;Level&amp;gt;0&amp;lt;/Level&amp;gt;&amp;lt;Task&amp;gt;13312&amp;lt;/Task&amp;gt;&amp;lt;Opcode&amp;gt;0&amp;lt;/Opcode&amp;gt;&amp;lt;Keywords&amp;gt;0x8020000000000000&amp;lt;/Keywords&amp;gt;&amp;lt;TimeCreated SystemTime='2024-02-21T22:33:19.5932251Z'/&amp;gt;&amp;lt;EventRecordID&amp;gt;4212468&amp;lt;/EventRecordID&amp;gt;&amp;lt;Correlation/&amp;gt;&amp;lt;Execution ProcessID='4' ThreadID='31196'/&amp;gt;&amp;lt;Channel&amp;gt;Security&amp;lt;/Channel&amp;gt;&amp;lt;Computer&amp;gt;{Device_FQNDN&amp;lt;/Computer&amp;gt;&amp;lt;Security/&amp;gt;&amp;lt;/System&amp;gt;&amp;lt;EventData&amp;gt;&amp;lt;Data Name='SubjectUserSid'&amp;gt;S-1-1-11-111111111-111111111-1111111111-111111&amp;lt;/Data&amp;gt;&amp;lt;Data Name='SubjectUserName'&amp;gt;{user}&amp;lt;/Data&amp;gt;&amp;lt;Data Name='SubjectDomainName'&amp;gt;{Domain}&amp;lt;/Data&amp;gt;&amp;lt;Data Name='SubjectLogonId'&amp;gt;0x1111111&amp;lt;/Data&amp;gt;&amp;lt;Data Name='NewProcessId'&amp;gt;0x7664&amp;lt;/Data&amp;gt;&amp;lt;Data Name='NewProcessName'&amp;gt;C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TokenElevationType'&amp;gt;%%1936&amp;lt;/Data&amp;gt;&amp;lt;Data Name='ProcessId'&amp;gt;0x4238&amp;lt;/Data&amp;gt;&amp;lt;Data Name='CommandLine'&amp;gt;&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetUserSid'&amp;gt;S-1-0-0&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetUserName'&amp;gt;-&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetDomainName'&amp;gt;-&amp;lt;/Data&amp;gt;&amp;lt;Data Name='TargetLogonId'&amp;gt;0x0&amp;lt;/Data&amp;gt;&amp;lt;Data Name='ParentProcessName'&amp;gt;C:\Users\{user}\AppData\Local\Microsoft\Teams\current\Teams.exe&amp;lt;/Data&amp;gt;&amp;lt;Data Name='MandatoryLabel'&amp;gt;S-1-11-1111&amp;lt;/Data&amp;gt;&amp;lt;/EventData&amp;gt;&amp;lt;/Event&amp;gt;&lt;/LI-CODE&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Events obfuscated for privacy. Like I said, the regex syntax looks fine as far as I can tell and matches in regex101 so I'm hoping it's a small thing I'm overlooking. We're running Splunk v9.1.1 if that makes any difference. Thanks!&lt;/P&gt;
&lt;P&gt;-SplunkUser5&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 22:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678290#M113347</guid>
      <dc:creator>SplunkUser5</dc:creator>
      <dc:date>2024-02-21T22:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678298#M113349</link>
      <description>&lt;P&gt;You regex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = "Teams\.exe&amp;lt;\/Data&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not hit your input data due to the quote.&lt;/P&gt;&lt;P&gt;Do not quote your regex in transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = Teams\.exe&amp;lt;\/Data&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 06:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678298#M113349</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2024-02-22T06:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678300#M113350</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262688"&gt;@SplunkUser5&lt;/a&gt;&amp;nbsp;- Yes&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213488"&gt;@jotne&lt;/a&gt;&amp;nbsp;is right about transforms.conf issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you want to exclude at the input level. This is a common issue I come across all the time and I keep forgetting again and again that is Windows path requires extra backslashes in the regex sometimes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C:\\\Users\\\.*\\\AppData\\\Local\\\Microsoft\\\Teams\\\current&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(try the 4 backslash version as well, as I'm not sure which one will work. I always have to do try and error between 2, 3, and 4 backslashes.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!! Kindly upvote if it does!!!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 07:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678300#M113350</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2024-02-22T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678406#M113365</link>
      <description>&lt;P&gt;Did not realize that. Thank you for the correction.&lt;/P&gt;&lt;P&gt;Removing quotes didn't exclude the Teams events though so I must have something else set wrong. As far as what I have posted, does it seem right? I'm not super familiar with troubleshooting props.conf and transforms.conf settings yet.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 00:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678406#M113365</guid>
      <dc:creator>SplunkUser5</dc:creator>
      <dc:date>2024-02-23T00:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678407#M113366</link>
      <description>&lt;P&gt;Thanks for the input. Escaping the escape characters seems a bit silly, but alright. I couldn't get it working today so I'll try a few more variations next week as I have time. Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 00:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678407#M113366</guid>
      <dc:creator>SplunkUser5</dc:creator>
      <dc:date>2024-02-23T00:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678422#M113369</link>
      <description>&lt;P&gt;You did remove the quotes in the second transform you posted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Problem with your first regex, is that it hits both the one to remove and the one to keep.&lt;/P&gt;&lt;P&gt;This may work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NewProcessName.*?Teams\.exe&amp;lt;\/Data&amp;gt;.*?ParentProcessName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for Teams.exe after NewProcessName and before ParentProcessNaneme&lt;/P&gt;&lt;P&gt;Always test your regex, like this:&lt;BR /&gt;&lt;A href="https://regex101.com/r/v97Z1h/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/v97Z1h/1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;This may be faster, since it uses less steps to find the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NewProcessName[^&amp;lt;]+Teams\.exe&amp;lt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Edit2&lt;BR /&gt;You can also set a sourcetype for the data you are trying to delete.&amp;nbsp; This way nothing are removed before you see that all is ok.&amp;nbsp; If sourcetype = ToDelete show correct data, then you can send it to nullQueue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[4688cleanup]
REGEX = NewProcessName[^&amp;lt;]+Teams\.exe&amp;lt;
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::ToDelete&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 06:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/678422#M113369</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2024-02-23T06:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/680889#M113757</link>
      <description>&lt;P&gt;I did get the exclusion under inputs.conf to work with different indexes using this format, just with double slashes rather than triple or quadruple, so there's just an issue with how my Windows security events are setup.&lt;/P&gt;&lt;P&gt;We're upgrading to v9.2 soon in case it's an issue with the arbitrary formatting of the Forwarded Events channel from the v9.1 update. The inputs.conf exclusion seems to work with everything else.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 23:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/680889#M113757</guid>
      <dc:creator>SplunkUser5</dc:creator>
      <dc:date>2024-03-15T23:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue excluding Windows events for a specific new process</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/680890#M113758</link>
      <description>&lt;P&gt;I finally tried this using a different index and it worked just fine. I'm thinking it's an issue with the Forwarded Events channel forwarding issue introduced in v9.1. Once we upgrade to v9.2, it should work just fine for EventID 4688.&lt;/P&gt;&lt;P&gt;Again, thanks for the input!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 23:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-excluding-Windows-events-for-a-specific-new-process/m-p/680890#M113758</guid>
      <dc:creator>SplunkUser5</dc:creator>
      <dc:date>2024-03-15T23:31:29Z</dc:date>
    </item>
  </channel>
</rss>

