<?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 Windows events filtering not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681517#M113867</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'having some problem when filtering standard Windows events. My goal is to send the events coming from my UFs to two different indexes based on the users. If the user ends with ".adm" the index should be index1, otherwhise index2. Here is my regex for filtering&amp;nbsp;&lt;A href="https://regex101.com/r/PsEHIp/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/PsEHIp/1&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I put it in inputs.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;###### OS Logs ######
[WinEventLog://Security]
disabled = 0
index = index1
followTail=true
start_from = oldest
current_only = 0
evt_resolve_ad_obj = 1
checkpointInterval = 5
blacklist = (?ms)EventCode=(4624|4634|4625)\s+.*\.adm
renderXml=false&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 21 Mar 2024 12:58:26 GMT</pubDate>
    <dc:creator>marco_massari11</dc:creator>
    <dc:date>2024-03-21T12:58:26Z</dc:date>
    <item>
      <title>Windows events filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681517#M113867</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'having some problem when filtering standard Windows events. My goal is to send the events coming from my UFs to two different indexes based on the users. If the user ends with ".adm" the index should be index1, otherwhise index2. Here is my regex for filtering&amp;nbsp;&lt;A href="https://regex101.com/r/PsEHIp/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/PsEHIp/1&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I put it in inputs.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;###### OS Logs ######
[WinEventLog://Security]
disabled = 0
index = index1
followTail=true
start_from = oldest
current_only = 0
evt_resolve_ad_obj = 1
checkpointInterval = 5
blacklist = (?ms)EventCode=(4624|4634|4625)\s+.*\.adm
renderXml=false&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Mar 2024 12:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681517#M113867</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2024-03-21T12:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Windows events filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681530#M113872</link>
      <description>&lt;P&gt;This can be accomplished with props and transforms. On your indexer machines, make the following files with stanzas: (whether through cluster bundle pushes or direct editing)&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# put this stanza in props.conf. Here your source field for the logs is assumed to be "WinEventLog://Security"
[source::WinEventLog://Security]
TRANSFORMS-anynamegoeshere=yourtransformname

# If you would like to apply the filter to a sourcetype, you can also do this:
[&amp;lt;yoursourcetype&amp;gt;]
TRANSFORMS-anynamegoeshere=yourtransformname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Put this in transforms.conf
[yourtransformname]
REGEX = (?ms)EventCode=(4624|4634|4625)\s+.*\.adm
FORMAT = index2
DEST_KEY = _MetaData:Index&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Mar 2024 11:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681530#M113872</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-03-21T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Windows events filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681534#M113873</link>
      <description>&lt;P&gt;Hello, thanks for the clarification. Your solution is about to send all the events that match&lt;/P&gt;&lt;PRE&gt;(?ms)EventCode=(4624|4634|4625)\s+.*\.adm&lt;/PRE&gt;&lt;P&gt;in a specific index, but what about if I want to send the not matched events to another index?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 12:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681534#M113873</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2024-03-21T12:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Windows events filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681620#M113892</link>
      <description>&lt;P&gt;You could leave the index=index1 field in the inputs.conf stanza. That way all non-matching events would go to index1, and all matching events would go to index 2&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 20:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681620#M113892</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-03-21T20:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Windows events filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681707#M113906</link>
      <description>&lt;P&gt;It seems that the regex is not working, because the events are still arriving in index1, I tried different regexes but is the same&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 16:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681707#M113906</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2024-03-22T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Windows events filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681751#M113909</link>
      <description>&lt;P&gt;Can you troubleshoot that Splunk is applying the props and transforms to the logs?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. what do your inputs.conf and props.conf stanzas look like for this log type, and on which Splunk machines are the inputs.conf and props.conf files placed&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 16:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-events-filtering-not-working/m-p/681751#M113909</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-03-23T16:31:26Z</dc:date>
    </item>
  </channel>
</rss>

