<?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: How to indexing single data to multiple index in one splunk server? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213286#M41909</link>
    <description>&lt;P&gt;hi Hunter,&lt;/P&gt;

&lt;P&gt;Thx for your answer but i still can't.&lt;/P&gt;

&lt;P&gt;this my transforms.conf&lt;/P&gt;

&lt;P&gt;[route_top1]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = os&lt;/P&gt;

&lt;P&gt;[route_top2]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = apaaja&lt;/P&gt;

&lt;P&gt;i think my regex should be the same one and another, because the data that i want to get into Splunk is data from "Top" command in linux. So i'm still confusing why Splunk only get the data into the "apaaja" index instead two both of the index that i made. it's look like the transfroms only replace the original index from inputs.conf which is index=os.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:15:58 GMT</pubDate>
    <dc:creator>zakxu8</dc:creator>
    <dc:date>2020-09-29T12:15:58Z</dc:date>
    <item>
      <title>How to indexing single data to multiple index in one splunk server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213284#M41907</link>
      <description>&lt;P&gt;Hi, can someone help me&lt;/P&gt;

&lt;P&gt;I want indexing single data to multiple indexer, i have try edit &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[top]&lt;BR /&gt;
TRANSFORMS-routing = customer1,customer2&lt;/P&gt;

&lt;P&gt;and i have edit &lt;/P&gt;

&lt;P&gt;transforsm.conf&lt;/P&gt;

&lt;P&gt;[customer1]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = test&lt;/P&gt;

&lt;P&gt;[customer2]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = os&lt;/P&gt;

&lt;P&gt;so just on index=os [customer2] data arrived on my splunk.&lt;/P&gt;

&lt;P&gt;somebody can help me?  I use  Splunk 6.5.1 &lt;BR /&gt;
Thank You&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213284#M41907</guid>
      <dc:creator>zakxu8</dc:creator>
      <dc:date>2020-09-29T12:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to indexing single data to multiple index in one splunk server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213285#M41908</link>
      <description>&lt;P&gt;Hi zakxu8, &lt;/P&gt;

&lt;P&gt;REGEX identifies the events from the SOURCE_KEY that will be processed. In your case, you must specify the regex that captures the events that you want to reroute (customer1 and customer2). &lt;BR /&gt;
I don't know your data structure, but here is an example you can try, assuming that you have a key named customerId to distinguish customer1 from customer2.  &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysrctype]
TRANSFORMS-customer1 = route_customer1
TRANSFORMS-customer2 = route_customer2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[route_customer1]
REGEX = customerId:customer1
DEST_KEY = _MetaData:Index
FORMAT = index_customer1

[route_customer2]
REGEX = customerId:customer2
DEST_KEY = _MetaData:Index
FORMAT = index_customer2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps. Thanks!&lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 15:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213285#M41908</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2017-01-04T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to indexing single data to multiple index in one splunk server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213286#M41909</link>
      <description>&lt;P&gt;hi Hunter,&lt;/P&gt;

&lt;P&gt;Thx for your answer but i still can't.&lt;/P&gt;

&lt;P&gt;this my transforms.conf&lt;/P&gt;

&lt;P&gt;[route_top1]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = os&lt;/P&gt;

&lt;P&gt;[route_top2]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = apaaja&lt;/P&gt;

&lt;P&gt;i think my regex should be the same one and another, because the data that i want to get into Splunk is data from "Top" command in linux. So i'm still confusing why Splunk only get the data into the "apaaja" index instead two both of the index that i made. it's look like the transfroms only replace the original index from inputs.conf which is index=os.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-indexing-single-data-to-multiple-index-in-one-splunk/m-p/213286#M41909</guid>
      <dc:creator>zakxu8</dc:creator>
      <dc:date>2020-09-29T12:15:58Z</dc:date>
    </item>
  </channel>
</rss>

