<?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 How to filter windows event logs in forwarder based on event codes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/483485#M82834</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to pull event logs from remote machines using universal forwarders. I have done the configuration in the inputs.conf files.&lt;BR /&gt;below is the configuration in my inputs.conf file.&lt;BR /&gt;[WinEventLog://Application]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;[WinEventLog://System]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;[WinEventLog://Setup]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;Now I dont want all event codes from the logs. I would require only 4800 and 4801.&lt;BR /&gt;is there any way in which only the events related to the two events can be forwarded to an index.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 13:51:54 GMT</pubDate>
    <dc:creator>naagaraj</dc:creator>
    <dc:date>2023-06-16T13:51:54Z</dc:date>
    <item>
      <title>How to filter windows event logs in forwarder based on event codes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/483485#M82834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to pull event logs from remote machines using universal forwarders. I have done the configuration in the inputs.conf files.&lt;BR /&gt;below is the configuration in my inputs.conf file.&lt;BR /&gt;[WinEventLog://Application]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;[WinEventLog://System]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;[WinEventLog://Setup]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = win_events&lt;BR /&gt;crcSalt = SOURCE&lt;/P&gt;
&lt;P&gt;Now I dont want all event codes from the logs. I would require only 4800 and 4801.&lt;BR /&gt;is there any way in which only the events related to the two events can be forwarded to an index.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 13:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/483485#M82834</guid>
      <dc:creator>naagaraj</dc:creator>
      <dc:date>2023-06-16T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter windows event logs in forwarder based on event codes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/483486#M82835</link>
      <description>&lt;P&gt;Have a look at this: (inputs.conf setting on Universal Forwarder)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Data/MonitorWindowseventlogdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Data/MonitorWindowseventlogdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.hurricanelabs.com/splunk-tutorials/windows-event-log-filtering-design-in-splunk"&gt;https://www.hurricanelabs.com/splunk-tutorials/windows-event-log-filtering-design-in-splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 20:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/483486#M82835</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-02-27T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter windows event logs in forwarder based on event codes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/647276#M110068</link>
      <description>&lt;P&gt;[WinEventLog://ForwardedEvents]&lt;/P&gt;&lt;P&gt;disabled = 0&lt;/P&gt;&lt;P&gt;checkpointInterval = 5&lt;/P&gt;&lt;P&gt;current_only = 0&lt;/P&gt;&lt;P&gt;start_from = oldest&lt;/P&gt;&lt;P&gt;index = wineventlog&lt;BR /&gt;# Filtering can be done with regex on the following field names :&amp;nbsp; Category, CategoryString, ComputerName, EventCode, EventType, Keywords, LogName, Message, OpCode, RecordNumber, Sid, SidType, SourceName, TaskCategory, Type, User&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;whitelist = EventCode=%^(400|1102|4610|4624|4625|4656|4662|4663|4697|4698|4723|4724|4728|4738|4756|4759|4765|4768|4769|4771|4776|4794|1|2|3|7|11|13|22)$%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;blacklist01 = User=%^.*\$$%&lt;/P&gt;&lt;P&gt;blacklist02 = EventCode="4662" Message="Object Type:(?!\s*groupPolicyContainer)"&lt;/P&gt;&lt;P&gt;renderXml = true&lt;/P&gt;&lt;P&gt;suppress_text = true&lt;/P&gt;&lt;P&gt;suppress_sourcename= true&lt;/P&gt;&lt;P&gt;suppress_keywords= true&lt;/P&gt;&lt;P&gt;suppress_task = true&lt;/P&gt;&lt;P&gt;suppress_opcode = true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 11:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-windows-event-logs-in-forwarder-based-on-event/m-p/647276#M110068</guid>
      <dc:creator>fulldanad</dc:creator>
      <dc:date>2023-06-16T11:29:32Z</dc:date>
    </item>
  </channel>
</rss>

