<?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 filter WMI:WinEventLog:Security events based on EventCode and Account_Name? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164923#M33452</link>
    <description>&lt;P&gt;Thanks for the feedback.  I have a REGEX that should work but now it's not filtering any 4662 events so the REGEX is not matching anything in Splunk.&lt;/P&gt;

&lt;P&gt;REGEX=(?m)^EventCode=(4662)\n([\s\S]*?)(Account Name:\s+MyADUser)&lt;/P&gt;

&lt;P&gt;What am I missing?  Anyone?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 22:08:32 GMT</pubDate>
    <dc:creator>samuelrey</dc:creator>
    <dc:date>2015-03-05T22:08:32Z</dc:date>
    <item>
      <title>How to filter WMI:WinEventLog:Security events based on EventCode and Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164920#M33449</link>
      <description>&lt;P&gt;I was able to successfully filter events using the lines below in props.conf and transform.conf.  Has anyone filtered using another field of the same event?  I want to filter by EventCode and Account_Name.  We have one particular account that we expect to generate a high number of these events but we are interested in the others.  Is this just a matter of modifying the same REGEX line?&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WMI:WinEventLog:Security]
TRANSFORMS-wmi=wminull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: In pre-4.2.x versions of Splunk, you must use [wmi] as the sourcetype in order to send events to nullQueue.&lt;/P&gt;

&lt;P&gt;transform.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wminull]
REGEX=(?m)^EventCode=(4662)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164920#M33449</guid>
      <dc:creator>samuelrey</dc:creator>
      <dc:date>2015-03-05T21:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter WMI:WinEventLog:Security events based on EventCode and Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164921#M33450</link>
      <description>&lt;P&gt;Yes, when using transforms you can filter on anything you can match with regex. (this happens on your indexers unless you are using heavy forwarders)&lt;/P&gt;

&lt;P&gt;Side note: in the scenario that you are only filtering based on the Windows code, see the following article on how to filter Windows codes directly on the Universal Forwarder.&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/"&gt;http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164921#M33450</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-05T21:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter WMI:WinEventLog:Security events based on EventCode and Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164922#M33451</link>
      <description>&lt;P&gt;You may want to paste a sample event here if you need help with the regex.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164922#M33451</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-05T21:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter WMI:WinEventLog:Security events based on EventCode and Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164923#M33452</link>
      <description>&lt;P&gt;Thanks for the feedback.  I have a REGEX that should work but now it's not filtering any 4662 events so the REGEX is not matching anything in Splunk.&lt;/P&gt;

&lt;P&gt;REGEX=(?m)^EventCode=(4662)\n([\s\S]*?)(Account Name:\s+MyADUser)&lt;/P&gt;

&lt;P&gt;What am I missing?  Anyone?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 22:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164923#M33452</guid>
      <dc:creator>samuelrey</dc:creator>
      <dc:date>2015-03-05T22:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter WMI:WinEventLog:Security events based on EventCode and Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164924#M33453</link>
      <description>&lt;P&gt;Slashes were removed from the REGEX in the last post&lt;BR /&gt;
&lt;CODE&gt;(?m)^EventCode=(4662)\n([\s\S]*?)(Account Name:\s+watchguard)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 22:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164924#M33453</guid>
      <dc:creator>samuelrey</dc:creator>
      <dc:date>2015-03-05T22:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter WMI:WinEventLog:Security events based on EventCode and Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164925#M33454</link>
      <description>&lt;P&gt;Please help me out how to create REGEX for the below list of event codes in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
i want to index only this event code data to SPLUNK Cloud&lt;BR /&gt;
4768-4777,4820,4720,4722-4735,4737-4767,4780-4794,4797-4799&lt;BR /&gt;
5328,5348,5349&lt;BR /&gt;
7837&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
 [WinEventLog:Security]&lt;BR /&gt;
 TRANSFORMS=null-queue&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;transforms.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
[null-queue]&lt;BR /&gt;
 REGEX=&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 21:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-WMI-WinEventLog-Security-events-based-on-EventCode/m-p/164925#M33454</guid>
      <dc:creator>chanamoluk</dc:creator>
      <dc:date>2017-01-10T21:59:53Z</dc:date>
    </item>
  </channel>
</rss>

