<?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: Unable to send same source data to two different logical indexes and two different indexers groups. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343405#M63236</link>
    <description>&lt;P&gt;Yes, I checked. It's writing only to the first index and passing the same to group1 indexers.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 14:53:27 GMT</pubDate>
    <dc:creator>arunsunny</dc:creator>
    <dc:date>2017-09-21T14:53:27Z</dc:date>
    <item>
      <title>Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343398#M63229</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Facing few challlenges, mine is playing around with the same transforms.&lt;/P&gt;

&lt;P&gt;I'm trying to achieve the same source data to forward to two different logical indexes and two different indexers groups. &lt;/P&gt;

&lt;P&gt;Below is my senrio.&lt;/P&gt;

&lt;P&gt;In props.conf used &lt;/P&gt;

&lt;P&gt;[source::Dual_Data_Testing]&lt;BR /&gt;
TRANSFORMS-source = Stan1, Stan2&lt;/P&gt;

&lt;P&gt;In transforms.conf&lt;/P&gt;

&lt;P&gt;[Stan1]&lt;BR /&gt;
SOURCE_KEY = MetaData:Source&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = Index1&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = IndexerGroup1&lt;/P&gt;

&lt;P&gt;[Stan2]&lt;BR /&gt;
SOURCE_KEY = MetaData:Source&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = Index2&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = IndexerGroup2&lt;/P&gt;

&lt;P&gt;Currently the above conf is not working.&lt;/P&gt;

&lt;P&gt;Please any suggestion can we workaround for this ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Arun Sunny&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343398#M63229</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2020-09-29T15:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343399#M63230</link>
      <description>&lt;P&gt;Hi arunsunny,&lt;BR /&gt;
do you want to send all logs to:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;both the indexers groups,&lt;/LI&gt;
&lt;LI&gt;selectively some logs to one group, some other to another group and some logs to both the groups?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;if the first, you don't need to configure props and transforms, you have only to configure outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:Group1]
defaultGroup = default-autolb-group

[tcpout-server://xx.xxx.xxx.xx:9997]
[tcpout-server://yy.yyy.yyy.yy:9997]

[tcpout:default-autolb-group]
server = xx.xxx.xxx.xx:9997, yy.yyy.yyy.yy:9997
disabled = false

[tcpout:Group2]
server=aa.aaa.aaa.aa:9997, bb.bbb.bbb.bb:9997
disabled = false

[tcpout-server://aa.aaa.aaa.aa:9997]
[tcpout-server://bb.bbb.bbb.bb:9997]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the second, follow &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
In other words you have to configure an outputs.conf as above and in every inputs.conf stanza put:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;_TCP_ROUTING=Group1 for logs to send only to Indexers Group1&lt;/LI&gt;
&lt;LI&gt;_TCP_ROUTING=Group2 for logs to send only to Indexers Group2&lt;/LI&gt;
&lt;LI&gt;nothing  for logs to send to both the Indexers Groups&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343399#M63230</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343400#M63231</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
[monitor://filepath1]&lt;BR /&gt;
index=index1&lt;BR /&gt;
_TCP_ROUTING = indexergroup1&lt;/P&gt;

&lt;P&gt;[monitor://filepath1]&lt;BR /&gt;
index=index2&lt;BR /&gt;
_TCP_ROUTING = indexergroup2&lt;/P&gt;

&lt;P&gt;Outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout:indexergroup1]&lt;BR /&gt;
server=server1:9997&lt;/P&gt;

&lt;P&gt;[tcpout:indexergroup2]&lt;BR /&gt;
server=server2:9997&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343400#M63231</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343401#M63232</link>
      <description>&lt;P&gt;Actually, I was trying for one of the DB input sources, so I cant duplicate the monitor stanza in inputs.conf&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 16:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343401#M63232</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2017-09-20T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343402#M63233</link>
      <description>&lt;P&gt;try this,&lt;/P&gt;

&lt;P&gt;#props.conf &lt;BR /&gt;
[source::Dual_Data_Testing]&lt;BR /&gt;
sourcetype=sourcetype1&lt;/P&gt;

&lt;P&gt;[source::Dual_Data_Testing]&lt;BR /&gt;
sourcetype=sourcetype2&lt;/P&gt;

&lt;P&gt;[sourcetype1]&lt;BR /&gt;
TRANSFORMS-index_outputgroup1 = overrideindex1,outputgroup1&lt;/P&gt;

&lt;P&gt;[sourcetype2]&lt;BR /&gt;
TRANSFORMS-index_outputgroup2 = overrideindex2,outputgroup2&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;P&gt;[overrideindex1]&lt;BR /&gt;
 DEST_KEY =_MetaData:Index&lt;BR /&gt;
 REGEX = .&lt;BR /&gt;
 FORMAT = my_new_index1&lt;/P&gt;

&lt;P&gt;[overrideindex2]&lt;BR /&gt;
 DEST_KEY =_MetaData:Index&lt;BR /&gt;
 REGEX = .&lt;BR /&gt;
 FORMAT = my_new_index2&lt;/P&gt;

&lt;P&gt;[outputgroup1]&lt;BR /&gt;
REGEX=(.)&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=outputgroup11&lt;/P&gt;

&lt;P&gt;[outputgroup2]&lt;BR /&gt;
REGEX=(.)&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=outputgroup22&lt;/P&gt;

&lt;P&gt;Outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout:outputgroup11]&lt;BR /&gt;
server=server1:9997&lt;/P&gt;

&lt;P&gt;[tcpout:outputgroup22]&lt;BR /&gt;
server=server1:9997&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343402#M63233</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343403#M63234</link>
      <description>&lt;P&gt;Its working fine for one output group and other is completely stopped sending events &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 08:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343403#M63234</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2017-09-21T08:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343404#M63235</link>
      <description>&lt;P&gt;Did you check data is writing on both the index and sourcetype.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343404#M63235</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-09-21T14:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343405#M63236</link>
      <description>&lt;P&gt;Yes, I checked. It's writing only to the first index and passing the same to group1 indexers.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343405#M63236</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2017-09-21T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343406#M63237</link>
      <description>&lt;P&gt;And I believe we can play around only once in _MetaData key values in transforms.conf . &lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343406#M63237</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2017-09-21T16:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send same source data to two different logical indexes and two different indexers groups.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343407#M63238</link>
      <description>&lt;P&gt;yeah thus why i have two different sourcetype for a source. But you mentioned that it is writing to only one sourcetype. May be you can try one with _TCP_ROUTING and another with _SYSLOG_ROUTING. &lt;/P&gt;

&lt;P&gt;Check the below link,&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.2/Forwarding/Routeandfilterdatad" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
Topic: Replicate a subset of data to a third-party system&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-send-same-source-data-to-two-different-logical-indexes/m-p/343407#M63238</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:50:35Z</dc:date>
    </item>
  </channel>
</rss>

