<?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 Send data to heavy forwarder to filter events AND change sourcetype - help please in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296123#M56157</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;As the question states, i'm looking to send events from a universal forwarder to a heavy forwarder to have filtered. Once filtered, i'd like to change the sourcetype. I have not implemented this yet. This is for me to propose to upper management to agree on. I want to make sure the props/transforms piece is correct. I think the filtering is good, however i just want to make sure the syntax is all good.&lt;/P&gt;

&lt;P&gt;I've listed my config and config details:&lt;/P&gt;

&lt;P&gt;ON UNIVERSAL FORWARDER&lt;/P&gt;

&lt;H2&gt;inputs.conf&lt;/H2&gt;

&lt;P&gt;[monitor://c:\program files\app1\web.log]&lt;BR /&gt;
_TCP_ROUTING = filter_heavy_forwarders&lt;BR /&gt;
index = cmis_index&lt;/P&gt;

&lt;H2&gt;sourcetype = app1_web_logs&lt;/H2&gt;

&lt;P&gt;ON UNIVERSAL FORWARDER&lt;/P&gt;

&lt;H2&gt;outputs.conf&lt;/H2&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=infosec_indexers&lt;/P&gt;

&lt;P&gt;[tcpout:infosec_indexers]&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
server = infosec_server1:9997,infosec_server2:9997,infosec_server3:9997…,infosec_server16:9997&lt;/P&gt;

&lt;P&gt;[tcpout:cmis_indexers]&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
server = cmis_server1:9997&lt;/P&gt;

&lt;P&gt;[tcpout:filter_heavy_forwarders]&lt;BR /&gt;
autoLB = true&lt;/P&gt;

&lt;H2&gt;Server = filter_hvyfwd1:9998,filter_hvyfwd2:9998&lt;/H2&gt;

&lt;P&gt;ON HEAVY FORWARDER&lt;/P&gt;

&lt;H2&gt;props.conf&lt;/H2&gt;

&lt;P&gt;[app1_web_logs]&lt;BR /&gt;
TRANSFORMS-routing = app1_web_filter&lt;/P&gt;

&lt;H2&gt;TRANSFORMS-changest = app1_cmis_web&lt;/H2&gt;

&lt;P&gt;ON HEAVY FORWARDER&lt;/P&gt;

&lt;H2&gt;transforms.conf&lt;/H2&gt;

&lt;P&gt;[app1_web_filter]&lt;BR /&gt;
REGEX = (Events|To|Filter)&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = cmis_indexers&lt;/P&gt;

&lt;P&gt;[app1_cmis_web_st]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;H2&gt;FORMAT =  sourcetype::app1_cmis_web&lt;/H2&gt;

&lt;P&gt;ON HEAVY FORWARDER&lt;/P&gt;

&lt;H2&gt;outputs.conf&lt;/H2&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=none&lt;/P&gt;

&lt;P&gt;[tcpout:cmis_indexers]&lt;BR /&gt;
autoLB = true&lt;/P&gt;

&lt;H2&gt;server = cmis_server1:9997&lt;/H2&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:10:01 GMT</pubDate>
    <dc:creator>johnmvang</dc:creator>
    <dc:date>2020-09-29T16:10:01Z</dc:date>
    <item>
      <title>Send data to heavy forwarder to filter events AND change sourcetype - help please</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296123#M56157</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;As the question states, i'm looking to send events from a universal forwarder to a heavy forwarder to have filtered. Once filtered, i'd like to change the sourcetype. I have not implemented this yet. This is for me to propose to upper management to agree on. I want to make sure the props/transforms piece is correct. I think the filtering is good, however i just want to make sure the syntax is all good.&lt;/P&gt;

&lt;P&gt;I've listed my config and config details:&lt;/P&gt;

&lt;P&gt;ON UNIVERSAL FORWARDER&lt;/P&gt;

&lt;H2&gt;inputs.conf&lt;/H2&gt;

&lt;P&gt;[monitor://c:\program files\app1\web.log]&lt;BR /&gt;
_TCP_ROUTING = filter_heavy_forwarders&lt;BR /&gt;
index = cmis_index&lt;/P&gt;

&lt;H2&gt;sourcetype = app1_web_logs&lt;/H2&gt;

&lt;P&gt;ON UNIVERSAL FORWARDER&lt;/P&gt;

&lt;H2&gt;outputs.conf&lt;/H2&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=infosec_indexers&lt;/P&gt;

&lt;P&gt;[tcpout:infosec_indexers]&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
server = infosec_server1:9997,infosec_server2:9997,infosec_server3:9997…,infosec_server16:9997&lt;/P&gt;

&lt;P&gt;[tcpout:cmis_indexers]&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
server = cmis_server1:9997&lt;/P&gt;

&lt;P&gt;[tcpout:filter_heavy_forwarders]&lt;BR /&gt;
autoLB = true&lt;/P&gt;

&lt;H2&gt;Server = filter_hvyfwd1:9998,filter_hvyfwd2:9998&lt;/H2&gt;

&lt;P&gt;ON HEAVY FORWARDER&lt;/P&gt;

&lt;H2&gt;props.conf&lt;/H2&gt;

&lt;P&gt;[app1_web_logs]&lt;BR /&gt;
TRANSFORMS-routing = app1_web_filter&lt;/P&gt;

&lt;H2&gt;TRANSFORMS-changest = app1_cmis_web&lt;/H2&gt;

&lt;P&gt;ON HEAVY FORWARDER&lt;/P&gt;

&lt;H2&gt;transforms.conf&lt;/H2&gt;

&lt;P&gt;[app1_web_filter]&lt;BR /&gt;
REGEX = (Events|To|Filter)&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = cmis_indexers&lt;/P&gt;

&lt;P&gt;[app1_cmis_web_st]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;H2&gt;FORMAT =  sourcetype::app1_cmis_web&lt;/H2&gt;

&lt;P&gt;ON HEAVY FORWARDER&lt;/P&gt;

&lt;H2&gt;outputs.conf&lt;/H2&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=none&lt;/P&gt;

&lt;P&gt;[tcpout:cmis_indexers]&lt;BR /&gt;
autoLB = true&lt;/P&gt;

&lt;H2&gt;server = cmis_server1:9997&lt;/H2&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296123#M56157</guid>
      <dc:creator>johnmvang</dc:creator>
      <dc:date>2020-09-29T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send data to heavy forwarder to filter events AND change sourcetype - help please</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296124#M56158</link>
      <description>&lt;P&gt;You can use &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;btool&lt;/A&gt; to validate your syntax.&lt;BR /&gt;
I notice you don't mention both tcpout's within the outputs.conf but this might be from the universal forwarder only.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 01:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296124#M56158</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-13T01:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send data to heavy forwarder to filter events AND change sourcetype - help please</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296125#M56159</link>
      <description>&lt;P&gt;i updated my question with the unifwd outputs. But let me look into the btool and i'll come back.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 02:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296125#M56159</guid>
      <dc:creator>johnmvang</dc:creator>
      <dc:date>2017-10-13T02:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Send data to heavy forwarder to filter events AND change sourcetype - help please</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296126#M56160</link>
      <description>&lt;P&gt;Hi johnmvang,&lt;BR /&gt;
only just a few information:&lt;BR /&gt;
in UFs outputs.conf I don't see&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout-server://infosec_server1:9997]
[tcpout-server://infosec_server2:9997]
[tcpout-server://infosec_server3:9997]
[tcpout-server://infosec_server16:9997]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but probably you missed these rows only in the question.&lt;/P&gt;

&lt;P&gt;On HF, you send all transforming logs only to cmis_indexers?&lt;BR /&gt;
if yes you don't need in props.conf &lt;CODE&gt;TRANSFORMS-routing = app1_web_filter&lt;/CODE&gt; and the relative stanza in transforms.conf.&lt;BR /&gt;
In addition I suggest to perform selective addressing directly in UFs.&lt;/P&gt;

&lt;P&gt;Anyway, I think that the problem is in HFs transforms.conf: the REGEX row is missing, so add &lt;CODE&gt;REGEX = .&lt;/CODE&gt; to the [app1_cmis_web_st] stanza.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-data-to-heavy-forwarder-to-filter-events-AND-change/m-p/296126#M56160</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T16:14:43Z</dc:date>
    </item>
  </channel>
</rss>

