<?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 Filter Windows Event Data to different Targets? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-Windows-Event-Data-to-different-Targets/m-p/209676#M41308</link>
    <description>&lt;P&gt;Question : I would like to ingest windows event data using Splunk Heavy Forwarder and need to filter  Windows event logs to Splunk indexer. Basically I want to index Winevent (Application , System and Setup) on  indexer 136 , All the other winevent Security log to indexer 133 and only winevent Security for EventCode 4634 and 4672 to Indexer144 &lt;/P&gt;

&lt;P&gt;What are the options to meet this need?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2016 05:57:42 GMT</pubDate>
    <dc:creator>rbal_splunk</dc:creator>
    <dc:date>2016-02-21T05:57:42Z</dc:date>
    <item>
      <title>Filter Windows Event Data to different Targets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-Windows-Event-Data-to-different-Targets/m-p/209676#M41308</link>
      <description>&lt;P&gt;Question : I would like to ingest windows event data using Splunk Heavy Forwarder and need to filter  Windows event logs to Splunk indexer. Basically I want to index Winevent (Application , System and Setup) on  indexer 136 , All the other winevent Security log to indexer 133 and only winevent Security for EventCode 4634 and 4672 to Indexer144 &lt;/P&gt;

&lt;P&gt;What are the options to meet this need?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 05:57:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-Windows-Event-Data-to-different-Targets/m-p/209676#M41308</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2016-02-21T05:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Windows Event Data to different Targets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-Windows-Event-Data-to-different-Targets/m-p/209677#M41309</link>
      <description>&lt;P&gt;My test is based on Splunk Version 6.3.3.&lt;/P&gt;

&lt;P&gt;Here are the setting that worked for me.&lt;/P&gt;

&lt;P&gt;1)On Heavy Forwarder – set inputs.conf as&lt;/P&gt;

&lt;P&gt;[WinEventLog://Application]&lt;BR /&gt;
checkpointInterval = 5&lt;BR /&gt;
current_only = 0&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;/P&gt;

&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;
checkpointInterval = 5&lt;BR /&gt;
current_only = 0&lt;BR /&gt;
_TCP_ROUTING = LI_133&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;/P&gt;

&lt;P&gt;[WinEventLog://Setup]&lt;BR /&gt;
checkpointInterval = 5&lt;BR /&gt;
current_only = 0&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;/P&gt;

&lt;P&gt;[WinEventLog://System]&lt;BR /&gt;
checkpointInterval = 5&lt;BR /&gt;
current_only = 0&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;/P&gt;

&lt;P&gt;2) Also Heavy Forwarder has props.conf and transforms.conf as &lt;/P&gt;

&lt;P&gt;----Props.conf---------&lt;BR /&gt;
[WinEventLog:Security]&lt;BR /&gt;
TRANSFORMS-null=  InCludeEvents&lt;/P&gt;

&lt;P&gt;----transforms.conf-------&lt;BR /&gt;
[InCludeEvents]&lt;BR /&gt;
 REGEX = EventCode=(4634|4672)&lt;BR /&gt;
 DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
 FORMAT = LI_144 &lt;/P&gt;

&lt;P&gt;3) Also Heavy Forwarder-outputs.conf has&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
indexAndForward = 1&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
compressed = false&lt;BR /&gt;
defaultGroup = LI_136&lt;/P&gt;

&lt;P&gt;[tcpout:LI_136]&lt;BR /&gt;
server = server_136:9997&lt;/P&gt;

&lt;P&gt;[tcpout: LI_144] &lt;BR /&gt;
server = server_136:9997&lt;/P&gt;

&lt;P&gt;[tcpout:LI_133]&lt;BR /&gt;
server = server_133:9997&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-Windows-Event-Data-to-different-Targets/m-p/209677#M41309</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-09-29T08:50:49Z</dc:date>
    </item>
  </channel>
</rss>

