<?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 can I split custom Windows Event Logs from the same source into multiple source types? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282577#M54020</link>
    <description>&lt;P&gt;I have a custom Windows Event Log source that I want to monitor via an universal forwarder.&lt;/P&gt;

&lt;P&gt;I'd like to split the events into 2 buckets resulting in 2 different source types in Splunk:&lt;BR /&gt;
-first bucket is a made of a list of known codes&lt;BR /&gt;
-second bucket is made of the rest of the events&lt;/P&gt;

&lt;P&gt;in inputs.conf of the universal forwarder, I added the following Stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://MyCustomSource]
disabled = 0
start_from = oldest
sourcetype=WinEventLogGeneric
blacklist=10001

[WinEventLog://MyCustomSource]
disabled = 0
start_from = oldest
sourcetype=WinEventLogWellKnownEvents
whitelist=10001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not seem to work.&lt;/P&gt;

&lt;P&gt;My goal is to end up with 2 different source types, one for the generic events and one for well known events.&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 19:05:52 GMT</pubDate>
    <dc:creator>remygoglio</dc:creator>
    <dc:date>2017-02-08T19:05:52Z</dc:date>
    <item>
      <title>How can I split custom Windows Event Logs from the same source into multiple source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282577#M54020</link>
      <description>&lt;P&gt;I have a custom Windows Event Log source that I want to monitor via an universal forwarder.&lt;/P&gt;

&lt;P&gt;I'd like to split the events into 2 buckets resulting in 2 different source types in Splunk:&lt;BR /&gt;
-first bucket is a made of a list of known codes&lt;BR /&gt;
-second bucket is made of the rest of the events&lt;/P&gt;

&lt;P&gt;in inputs.conf of the universal forwarder, I added the following Stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://MyCustomSource]
disabled = 0
start_from = oldest
sourcetype=WinEventLogGeneric
blacklist=10001

[WinEventLog://MyCustomSource]
disabled = 0
start_from = oldest
sourcetype=WinEventLogWellKnownEvents
whitelist=10001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not seem to work.&lt;/P&gt;

&lt;P&gt;My goal is to end up with 2 different source types, one for the generic events and one for well known events.&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282577#M54020</guid>
      <dc:creator>remygoglio</dc:creator>
      <dc:date>2017-02-08T19:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I split custom Windows Event Logs from the same source into multiple source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282578#M54021</link>
      <description>&lt;P&gt;The Cisco ASA TA does something similar to what your trying. If you look at the props.conf and transforms.conf that comes with that add-on it will help. &lt;/P&gt;

&lt;P&gt;What that app does is takes that one source and assigns it sourcetypes based on regex. So you can split up one source into different sections with regex and give those sections sourcetypes.&lt;/P&gt;

&lt;P&gt;Something like this: &lt;BR /&gt;
inputs.conf:&lt;BR /&gt;
&lt;CODE&gt;[WinEventLog://MyCustomSource]&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;disabled = 0&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;start_from = oldest&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;sourcetype=WinEventLog&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
&lt;CODE&gt;[WinEventLog]&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;TRANSFORMS-force_sourcetype_for_windows = wellKnowEvents, GenericEvents&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
&lt;CODE&gt;[wellKnownEvents]&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;DEST_KEY - MetaData:Sourcetype&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;REGEX = &amp;lt; your regex that matches these events &amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;FORMAT = sourcetype:: &amp;lt; name of sourcetype&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[GenericEvents]&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;DEST_KEY - MetaData:Sourcetype&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;REGEX = &amp;lt; your regex that matches these events &amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
 &lt;CODE&gt;FORMAT = sourcetype:: &amp;lt; name of sourcetype&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282578#M54021</guid>
      <dc:creator>kmccririe_splun</dc:creator>
      <dc:date>2017-02-08T19:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I split custom Windows Event Logs from the same source into multiple source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282579#M54022</link>
      <description>&lt;P&gt;That does not seem to work.&lt;BR /&gt;
I looked at other similar questions/answers, and it seems like others have the exact same issue.&lt;/P&gt;

&lt;P&gt;What I get is sourcetype=WinEventLog as opposed to the source types set in transforms.conf.&lt;/P&gt;

&lt;P&gt;I have even tried my regex in the search: index="myindex" | regex _raw="EventCode=(10001)"&lt;/P&gt;

&lt;P&gt;Any other idea?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 00:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282579#M54022</guid>
      <dc:creator>remygoglio</dc:creator>
      <dc:date>2017-02-10T00:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I split custom Windows Event Logs from the same source into multiple source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282580#M54023</link>
      <description>&lt;P&gt;Does the universal forwarder read props.conf?&lt;BR /&gt;
It does not seem to based on my tests, which would explain why nothing is working.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 00:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-split-custom-Windows-Event-Logs-from-the-same-source/m-p/282580#M54023</guid>
      <dc:creator>remygoglio</dc:creator>
      <dc:date>2017-02-10T00:53:28Z</dc:date>
    </item>
  </channel>
</rss>

