<?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: In a heavy forwarder, how do I select specific windows event ids and reparse them as single line events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387209#M69451</link>
    <description>&lt;P&gt;Is there any reason not using &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; in inputs.conf? I meant, does below implementation works?&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp://9997]
sourcetype = for3rdparty
whitelist = 111, 222, 333
_TCP_ROUTING = for3rdparty
persistentQueueSize=200MB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[for3rdparty]
SEDCMD-rmlines = s/[\n\t\r]/ /g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:for3rdparty]
server = 1.1.1.1:1111
sendCookedData = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Aug 2018 19:52:22 GMT</pubDate>
    <dc:creator>sudosplunk</dc:creator>
    <dc:date>2018-08-10T19:52:22Z</dc:date>
    <item>
      <title>In a heavy forwarder, how do I select specific windows event ids and reparse them as single line events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387208#M69450</link>
      <description>&lt;P&gt;I have windows event logs coming into a heavy forwarder, which I don’t need to index. All I need to do is select a couple of windows event ids, reparse them and send them to a 3rd party as single line events. I’ve read a lot of articles about forwarding and similar types of posts, but I cannot seem to get this to work. Any help would be greatly appreciated! &lt;BR /&gt;
This is what I have so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf 
[tcp://9997]
sourcetype = for3rdparty
queueSize = 50KB
persistentQueueSize=200MB
queue = parsingQueue

outputs.conf
[tcpout:3rdparty]
server = 1.1.1.1:1111
sendCookedData = false

props.conf
[for3rdparty]
SEDCMD-rmlines = s/[\n\t\r]/ /g
TRANSFORMS-1capture = capture_for_3rdparty
TRANSFORMS-2reparse = reparse_for_3rdparty
TRANSFORMS-3route = route_to_3rdparty

transforms.conf
[capture_for_3rdparty]
REGEX=(?ms)^EventCode=(111|222|333)(.*)
DEST_KEY=_raw

[reparse_for_3rdparty]
REGEX = &amp;lt;regex&amp;gt;
FORMAT = $1::$2
DEST_KEY = _raw

[route_to_3rdparty]
REGEX =.
DEST_KEY=_TCP_ROUTING
FORMAT= for3rdparty
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Aug 2018 19:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387208#M69450</guid>
      <dc:creator>pete222</dc:creator>
      <dc:date>2018-08-07T19:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: In a heavy forwarder, how do I select specific windows event ids and reparse them as single line events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387209#M69451</link>
      <description>&lt;P&gt;Is there any reason not using &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; in inputs.conf? I meant, does below implementation works?&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp://9997]
sourcetype = for3rdparty
whitelist = 111, 222, 333
_TCP_ROUTING = for3rdparty
persistentQueueSize=200MB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[for3rdparty]
SEDCMD-rmlines = s/[\n\t\r]/ /g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:for3rdparty]
server = 1.1.1.1:1111
sendCookedData = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 19:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387209#M69451</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-10T19:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: In a heavy forwarder, how do I select specific windows event ids and reparse them as single line events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387210#M69452</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
Apologies for the slow response. I did as you suggested, used _TCP_ROUTING in inputs.conf and everything works as it should. Thanks! &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-a-heavy-forwarder-how-do-I-select-specific-windows-event-ids/m-p/387210#M69452</guid>
      <dc:creator>pete222</dc:creator>
      <dc:date>2020-09-29T20:52:30Z</dc:date>
    </item>
  </channel>
</rss>

