<?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 WinRegMon proc regex not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/WinRegMon-proc-regex-not-working/m-p/503821#M85927</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Have a distributed Splunk Enterprise deployment. I am trying to filter incoming registry events to remove wasteful data on all of my Forwarders. This is the Stanza in question from $SPLUNK_HOME\etc\deployment_apps\Splunk_TA_Windows\local\inputs.conf. This app is deployed to all appropriate Forwarders and have run 'reload deploy-server' after saving changes.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[WinRegMon://hklm]
disabled = 0
hive = \\REGISTRY\\MACHINE\\.*
proc = ^(?:(?!first\.exe|Second\.Punctuated\.exe).)*$
type = create|delete
index = windows-mon&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When watching incoming data, the regex isn't working, events containing these exe names in process_image are still present. I have checked using regex101.com using example data below, it works perfectly.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;06/11/2020 08:51:57.983
event_status="(0)The operation completed successfully."
pid=1996
process_image="c:\Program Files\Folder\first.exe"
registry_type="CreateKey"
key_path="HKLM\software\folder\classifiedapplications"
data_type="REG_NONE"
data=""

06/11/2020 08:53:18.187
event_status="(0)The operation completed successfully."
pid=2084
process_image="c:\Program Files (x86)\Folder\Second.Punctuated.exe"
registry_type="CreateKey"
key_path="HKLM\software\microsoft\enterprisecertificates\trust\ctls"
data_type="REG_NONE"
data=""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 22:57:35 GMT</pubDate>
    <dc:creator>bdaniel</dc:creator>
    <dc:date>2020-06-10T22:57:35Z</dc:date>
    <item>
      <title>WinRegMon proc regex not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinRegMon-proc-regex-not-working/m-p/503821#M85927</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Have a distributed Splunk Enterprise deployment. I am trying to filter incoming registry events to remove wasteful data on all of my Forwarders. This is the Stanza in question from $SPLUNK_HOME\etc\deployment_apps\Splunk_TA_Windows\local\inputs.conf. This app is deployed to all appropriate Forwarders and have run 'reload deploy-server' after saving changes.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[WinRegMon://hklm]
disabled = 0
hive = \\REGISTRY\\MACHINE\\.*
proc = ^(?:(?!first\.exe|Second\.Punctuated\.exe).)*$
type = create|delete
index = windows-mon&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When watching incoming data, the regex isn't working, events containing these exe names in process_image are still present. I have checked using regex101.com using example data below, it works perfectly.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;06/11/2020 08:51:57.983
event_status="(0)The operation completed successfully."
pid=1996
process_image="c:\Program Files\Folder\first.exe"
registry_type="CreateKey"
key_path="HKLM\software\folder\classifiedapplications"
data_type="REG_NONE"
data=""

06/11/2020 08:53:18.187
event_status="(0)The operation completed successfully."
pid=2084
process_image="c:\Program Files (x86)\Folder\Second.Punctuated.exe"
registry_type="CreateKey"
key_path="HKLM\software\microsoft\enterprisecertificates\trust\ctls"
data_type="REG_NONE"
data=""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 22:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinRegMon-proc-regex-not-working/m-p/503821#M85927</guid>
      <dc:creator>bdaniel</dc:creator>
      <dc:date>2020-06-10T22:57:35Z</dc:date>
    </item>
  </channel>
</rss>

