<?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 index logs to a specific splunk cloud? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-index-logs-to-a-specific-splunk-cloud/m-p/599090#M208581</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi there,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If I have several splunk clouds and a heavy forwarder on-premise, how can I configure the heavy forwarder to send specific logs to a specific splunk cloud?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 14:28:50 GMT</pubDate>
    <dc:creator>zcx01067</dc:creator>
    <dc:date>2022-05-24T14:28:50Z</dc:date>
    <item>
      <title>How can I index logs to a specific splunk cloud?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-index-logs-to-a-specific-splunk-cloud/m-p/599090#M208581</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi there,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If I have several splunk clouds and a heavy forwarder on-premise, how can I configure the heavy forwarder to send specific logs to a specific splunk cloud?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-index-logs-to-a-specific-splunk-cloud/m-p/599090#M208581</guid>
      <dc:creator>zcx01067</dc:creator>
      <dc:date>2022-05-24T14:28:50Z</dc:date>
    </item>
    <item>
      <title>How can I index logs to a specific splunk cloud?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-index-logs-to-a-specific-splunk-cloud/m-p/599173#M208593</link>
      <description>&lt;P&gt;Can be achieved via the magic of props, transforms and outputs.conf on a heavy forwarder. Here are the steps.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select the log source, find its metadata value (host, source or sourcetype)&lt;/LI&gt;&lt;LI&gt;in props.conf (Under the app where your inputs is kept or under system/local), put the following&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[yoursourectype/host/source]
TRANSFORMS-routing=route_data_to_region1
TRANSFORMS-routing1=route_data_to_region2
TRANSFORMS-routing2=route_data_to_region3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the same directory, under transforms.conf, please put the following:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[route_data_to_region1]
REGEX=&amp;lt;Your regex to match the data that you want to send to this region&amp;gt;
DEST_KEY=_TCP_ROUTING
FORMAT=target_group1 #You can name the target group name mentioned in the outputs.conf of this region as well

[route_data_to_region2]
REGEX=&amp;lt;Your regex to match the data that you want to send to this region&amp;gt;
DEST_KEY=_TCP_ROUTING
FORMAT=target_group2

[route_data_to_region3]
REGEX=&amp;lt;Your regex to match the data that you want to send to this region&amp;gt;
DEST_KEY=_TCP_ROUTING
FORMAT=target_group3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Now in outputs.conf under the same directory, you can route the data to your different SplunkCloud regions. Since its SplunkCloud, please add the certificate path and key like the one present in the certificate app.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout:target_group1]
server=&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt; #Enter your indexers' IP address and details
#Add more details like cert's path (Provided by Splunk for Splunkcloud) for TLS handshake, key's path and other configs as required.

[tcpout:target_group2]
server=&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;

[tcpout:target_group3]
server=&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Restart splunk service on the HF and the data routing shall begin.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;##If this helps, please consider an upvote/accepting as an answer###&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 21:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-index-logs-to-a-specific-splunk-cloud/m-p/599173#M208593</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2022-05-24T21:45:39Z</dc:date>
    </item>
  </channel>
</rss>

