<?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 What are the sequence of execution transforms across different stanza and locations? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-sequence-of-execution-transforms-across-different/m-p/448697#M77985</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We want to change sourcetype and then send data to two different Splunk Indexers.&lt;/P&gt;

&lt;P&gt;What is happening is the sourcetype is getting changed (that means first props.conf stanza is working) BUT the seconds props.conf stanza present in the apps folder is not working (It is only sending the logs to default output group).&lt;/P&gt;

&lt;P&gt;Configuration files for change &lt;STRONG&gt;sourcetypes&lt;/STRONG&gt; are located in the &lt;STRONG&gt;/system/local&lt;/STRONG&gt; folder and &lt;STRONG&gt;route data&lt;/STRONG&gt; configuration files are in the &lt;STRONG&gt;/apps/application/local/&lt;/STRONG&gt; folder. &lt;/P&gt;

&lt;P&gt;Does anyone have similar issue? Thanks!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SPLUNK_HOME/etc/system/local/&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/abc/xyz.log]
TRANSFORMS-changesourcetype = st
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[st]
REGEX = \.*\[12345]\.*
FORMAT = sourcetype::sourcetype1
DEST_KEY = MetaData:Sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;SPLUNK_HOME/etc/apps/application/local&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype1]
TRANSFORMS-routing = route_data
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[route_data]
REGEX = .
DEST_KEY = _TCP_ROUTING
FORMAT = indexer1, indexer2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Feb 2019 01:15:52 GMT</pubDate>
    <dc:creator>fxyfrank_acn</dc:creator>
    <dc:date>2019-02-08T01:15:52Z</dc:date>
    <item>
      <title>What are the sequence of execution transforms across different stanza and locations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-sequence-of-execution-transforms-across-different/m-p/448697#M77985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We want to change sourcetype and then send data to two different Splunk Indexers.&lt;/P&gt;

&lt;P&gt;What is happening is the sourcetype is getting changed (that means first props.conf stanza is working) BUT the seconds props.conf stanza present in the apps folder is not working (It is only sending the logs to default output group).&lt;/P&gt;

&lt;P&gt;Configuration files for change &lt;STRONG&gt;sourcetypes&lt;/STRONG&gt; are located in the &lt;STRONG&gt;/system/local&lt;/STRONG&gt; folder and &lt;STRONG&gt;route data&lt;/STRONG&gt; configuration files are in the &lt;STRONG&gt;/apps/application/local/&lt;/STRONG&gt; folder. &lt;/P&gt;

&lt;P&gt;Does anyone have similar issue? Thanks!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SPLUNK_HOME/etc/system/local/&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/abc/xyz.log]
TRANSFORMS-changesourcetype = st
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[st]
REGEX = \.*\[12345]\.*
FORMAT = sourcetype::sourcetype1
DEST_KEY = MetaData:Sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;SPLUNK_HOME/etc/apps/application/local&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype1]
TRANSFORMS-routing = route_data
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[route_data]
REGEX = .
DEST_KEY = _TCP_ROUTING
FORMAT = indexer1, indexer2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 01:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-sequence-of-execution-transforms-across-different/m-p/448697#M77985</guid>
      <dc:creator>fxyfrank_acn</dc:creator>
      <dc:date>2019-02-08T01:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: What are the sequence of execution transforms across different stanza and locations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-sequence-of-execution-transforms-across-different/m-p/448698#M77986</link>
      <description>&lt;P&gt;The sourcetype is only checked once as the event enters the pipeline. So change your routing to be for &lt;CODE&gt;[source::/abc/xyz.log]&lt;/CODE&gt; instead&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 05:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-sequence-of-execution-transforms-across-different/m-p/448698#M77986</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-08T05:49:36Z</dc:date>
    </item>
  </channel>
</rss>

