<?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 do i clone one sourcetype multiple times? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475101#M86897</link>
    <description>&lt;PRE&gt;&lt;CODE&gt; props.conf
 [G1]
 TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA_sun_jvm,CLONE_SOURCETYPE_JAVA_gc11

transforms.conf
 [CLONE_SOURCETYPE_JAVA_sun_jvm]
 CLONE_SOURCETYPE = sun_jvm
 REGEX = .

[CLONE_SOURCETYPE_JAVA_gc11]
 CLONE_SOURCETYPE = GC11
 REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although I'm not sure I understand why you want to do this?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 12:20:25 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2020-02-21T12:20:25Z</dc:date>
    <item>
      <title>How do i clone one sourcetype multiple times?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475100#M86896</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;Currently i copy a sourcetypes with TRANSFORMS-CLONE and it works, example below.&lt;BR /&gt;
But i want to use TRANSFORMS-CLONE multiple times from the original props.conf is that possible?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Current Situation&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Forwarder
[monitor:///net/hp737srv/hp737srv1/apps/TEST/JAVA_11_TEST_FILES/FULL_LOGS_NO2/logs.../*]
sourcetype = G1
crcSalt = &amp;lt;SOURCE&amp;gt;

props.conf
[G1]
TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA

transforms.conf
[CLONE_SOURCETYPE_JAVA]
CLONE_SOURCETYPE = sun_jvm
REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However I now have to make more TRANSFORMS-CLONE work from more then 1 (This does not work)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[G1]
TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA
TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA2
TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or if i tried the other way in the to clone in the transforms.conf multiple times (it does not work either)&lt;/P&gt;

&lt;P&gt;And use multiple  CLONE_SOURCETYPE_JAVA in the transforms.conf, it only pick one of them not the second one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;transforms.conf
[CLONE_SOURCETYPE_JAVA]
CLONE_SOURCETYPE = sun_jvm
REGEX = .

[CLONE_SOURCETYPE_JAVA]
CLONE_SOURCETYPE = GC11
REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It does work if i push one to another and then again to another...but this creates a long string. JAVA-&amp;gt;GC11-&amp;gt;sun_jvm&lt;BR /&gt;
I want it to come in a sourcetype X. Then copy X to A,B,C  and not have a long string&lt;/P&gt;

&lt;P&gt;Thanks in Advance for any help&lt;BR /&gt;
Rob &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475100#M86896</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-09-30T04:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do i clone one sourcetype multiple times?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475101#M86897</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; props.conf
 [G1]
 TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA_sun_jvm,CLONE_SOURCETYPE_JAVA_gc11

transforms.conf
 [CLONE_SOURCETYPE_JAVA_sun_jvm]
 CLONE_SOURCETYPE = sun_jvm
 REGEX = .

[CLONE_SOURCETYPE_JAVA_gc11]
 CLONE_SOURCETYPE = GC11
 REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although I'm not sure I understand why you want to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 12:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475101#M86897</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-21T12:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do i clone one sourcetype multiple times?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475102#M86898</link>
      <description>&lt;P&gt;perfect, can you change to a an answer and i will accept it please.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 12:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475102#M86898</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-02-21T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do i clone one sourcetype multiple times?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475103#M86899</link>
      <description>&lt;P&gt;I need this as the files that come in *.gc.log can be many different garabage collection ways, JAVA 8,9,11 J1 etc.... So i have to take them in and use REGEX to decide what is what.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 12:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-clone-one-sourcetype-multiple-times/m-p/475103#M86899</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-02-21T12:53:48Z</dc:date>
    </item>
  </channel>
</rss>

