<?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: Sourcetype cloning - logs stopped in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683900#M114160</link>
    <description>&lt;P&gt;Ok, to be honest I had to check more on the config to properly clone and forward my datas, the behaviour of the conf it's strange. But thanks a lot for your help, I appreciate !&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 13:16:14 GMT</pubDate>
    <dc:creator>Nicolas2203</dc:creator>
    <dc:date>2024-04-11T13:16:14Z</dc:date>
    <item>
      <title>Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683613#M114117</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;&lt;BR /&gt;After temptative for troubleshooting my issue alone, I will try my luck here.&lt;BR /&gt;&lt;BR /&gt;Purpose : clone one sourcetype to store the logs into a local indexer, and in a distant one&lt;BR /&gt;I use one heavy forwarder to receive the logs, store the logs in a indexer, and same heavy forwarder will clone the sourcetype to forward the cloned one into a distant heavy forward, that I don't managed.&lt;BR /&gt;Here is my config :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[inputs.conf]
[udp://22210]
index = my_logs_indexer
sourcetype = log_sourcetype
disabled = false&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;This works pretty well, and all logs are stored into my indexer&lt;BR /&gt;&lt;BR /&gt;Now will come the cloning part :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[props.conf]
[log_sourcetype]
TRANSFORMS-log_sourcetype-clone = log_sourcetype-clone

[transforms.conf]
[log_sourcetype-clone]
REGEX = .
DEST_KEY = _TCP_ROUTING
FORMAT = distant_HF_formylogs

[outputs.conf] =&amp;gt; for cloned logs
[tcpout:distant_HF_formylogs]
server = ip_of_distant_HF:port
sendCookedData = false&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This configuration is used for another use case, as sometimes I have had to anonymize some logs. However, for this particular use case, when I activate the cloning part, it stops the complete log flow for this use case, even on the local indexers. I didn't quite understand why, because I don't see the difference with my other use case, apart from the fact that the logs are UDP logs and not TCP. Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 15:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683613#M114117</guid>
      <dc:creator>Nicolas2203</dc:creator>
      <dc:date>2024-04-08T15:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683636#M114118</link>
      <description>&lt;P&gt;When you're overwriting the value of _TCP_ROUTING metadata field, you're effectively telling Splunk to route the events to this destination (output group) &lt;EM&gt;only&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;If you want to route some data to more than one output group, you must include all relevant output groups in _TCP_ROUTING. Like&lt;/P&gt;&lt;PRE&gt;_TCP_ROUTING = my_primary_indexers, my_secondary_indexers&lt;/PRE&gt;&lt;P&gt;Read the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Configure_routing" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Configure_routing&lt;/A&gt; Of course you don't have to put the transforms.conf into etc/system/local (in fact it'd be best if you didn't do that).&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 18:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683636#M114118</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-04-08T18:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683672#M114128</link>
      <description>&lt;P&gt;Hi PickleRick, thanks for your response and time.&lt;BR /&gt;&lt;BR /&gt;The cloned logs are routing only to one instance, specified into the outputs.conf&lt;BR /&gt;&lt;BR /&gt;The "original" logs, not the cloned one are directed to my local indexers, just the cloned sourcetype is directed with another heavy forwarder specified in the outputs.conf placed in the same app as the props and transforms.&lt;BR /&gt;&lt;BR /&gt;Not sure if i'm clear &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 08:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683672#M114128</guid>
      <dc:creator>Nicolas2203</dc:creator>
      <dc:date>2024-04-09T08:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683676#M114129</link>
      <description>&lt;P&gt;Yes. I understand. They are not "cloned", they are redirected.&lt;/P&gt;&lt;P&gt;The events are sent to _all_ output groups specified in the outputs.conf (or to the specified output group(s), if you manipulated _TCP_ROUTING manually). Within each of applicable group the event is sent to just one of the servers configured in such group.&lt;/P&gt;&lt;P&gt;So you must make sure that the events you want have both output groups specified in _TCP_ROUTING.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 09:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683676#M114129</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-04-09T09:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683680#M114130</link>
      <description>&lt;P&gt;Ok I understand what you say. But sorry I forgot to mentionned that I have a TCPOUT default on my conf:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = my_indexers
forceTimebasedAutoLB = true
forwardedindex.filter.disable = true

[tcpout:my_indexers]
server = indexer1:9997, indexer2:9997

&lt;/LI-CODE&gt;
&lt;P&gt;So if I'am correct, the inputs.conf :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[inputs.conf]
[udp://22210]
index = my_logs_indexer
sourcetype = log_sourcetype
disabled = false

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Redirect the logs to the default outputs, because no outputs is specified .&lt;BR /&gt;&lt;BR /&gt;Correct me if I'm wrong, and sorry to forgot this config at the first question&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 17:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683680#M114130</guid>
      <dc:creator>Nicolas2203</dc:creator>
      <dc:date>2024-04-09T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683681#M114131</link>
      <description>&lt;P&gt;Yes. The [tcpout] defaultGroup setting tells your Splunk component what to do with events by default. So if you don't modify the _TCP_ROUTING field, your events should be going to the my_indexers group.&lt;/P&gt;&lt;P&gt;But when you overwrite the _TCP_ROUTING with just distant_HF_formylogs, you'll be sending to that group only.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683681#M114131</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-04-09T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype cloning - logs stopped</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683900#M114160</link>
      <description>&lt;P&gt;Ok, to be honest I had to check more on the config to properly clone and forward my datas, the behaviour of the conf it's strange. But thanks a lot for your help, I appreciate !&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-cloning-logs-stopped/m-p/683900#M114160</guid>
      <dc:creator>Nicolas2203</dc:creator>
      <dc:date>2024-04-11T13:16:14Z</dc:date>
    </item>
  </channel>
</rss>

