<?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 you create a duplicate source type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404354#M71799</link>
    <description>&lt;P&gt;What would be the purpose of this? And would you intend to duplicate the data then, or do you mean that part of your data should get assigned data1 and part of it should get assigned data2 as sourcetype?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 13:53:06 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-11-27T13:53:06Z</dc:date>
    <item>
      <title>How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404351#M71796</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Need a quick help on creating duplicate source types in Splunk.&lt;/P&gt;

&lt;P&gt;Currently, the data is flowing into &lt;CODE&gt;index=test1 sourcetype=data1&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now, I would like to send the same data into another source type as well while keeping the original source type also.&lt;/P&gt;

&lt;P&gt;So, the final result I am looking for is like below:&lt;/P&gt;

&lt;P&gt;On Splunk Web, execute the search as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then, I should be able to see 2 source types as sourcetype=data1 and sourcetype=data2 for the same index.&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Santosh&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 10:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404351#M71796</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2018-11-27T10:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404352#M71797</link>
      <description>&lt;P&gt;Events can have exactly one sourcetype.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 12:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404352#M71797</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-11-27T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404353#M71798</link>
      <description>&lt;P&gt;What is it you want to achieve with the separation?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 13:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404353#M71798</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-11-27T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404354#M71799</link>
      <description>&lt;P&gt;What would be the purpose of this? And would you intend to duplicate the data then, or do you mean that part of your data should get assigned data1 and part of it should get assigned data2 as sourcetype?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 13:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404354#M71799</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-27T13:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404355#M71800</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Thanks for the response.&lt;/P&gt;

&lt;P&gt;Purpose of creating duplicate sourcetype:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;The original sourcetype (data1) was created by another team and we don't have any control on this sourcetype. Going forward if they delete this sourcetype without our knowledge then we won't be having any control on the sourcetype. Hence, we are creating a duplicate sourcetype (data2) so that we can have the control of the data flowing into this sourcetype and can parse the data easily.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;regards,&lt;BR /&gt;
Santosh&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 05:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404355#M71800</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2018-11-29T05:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404356#M71801</link>
      <description>&lt;P&gt;Sounds like you’re trying to solve a people/process problem with a technology solution. That isn’t always the best way to go.&lt;/P&gt;

&lt;P&gt;But if you really cannot solve this on a people/process level, why not simply take a backup of that sourcetype config so that in the case they remove it, you can simply add it again?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 17:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404356#M71801</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-29T17:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404357#M71802</link>
      <description>&lt;P&gt;You can use clone_sourcetype to clone your data into another sourcetype.&lt;/P&gt;

&lt;P&gt;Your will need to configure your props.conf and transforms.conf to look something like this:&lt;/P&gt;

&lt;H2&gt;props.conf&lt;/H2&gt;

&lt;P&gt;[original_sourcetype]&lt;BR /&gt;
parm1 = xxx&lt;BR /&gt;
parm2 = 123&lt;/P&gt;

&lt;P&gt;[duplicate_sourcetype]&lt;BR /&gt;
parm1 = xxx&lt;BR /&gt;
parm2 = 123&lt;/P&gt;

&lt;P&gt;[source::]&lt;BR /&gt;
TRANSFORMS-clone = clone_sourcetype&lt;/P&gt;

&lt;H2&gt;transforms.conf:&lt;/H2&gt;

&lt;P&gt;[clone_sourcetype]&lt;BR /&gt;
CLONE_SOURCETYPE = duplicate_sourcetype&lt;BR /&gt;
REGEX = .&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/404357#M71802</guid>
      <dc:creator>eagle4splunk</dc:creator>
      <dc:date>2020-09-29T23:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/641131#M109362</link>
      <description>&lt;P&gt;Mine purpose for duplicate sourcetype is&amp;nbsp; &amp;nbsp;- I am having another data inputs with extractions similar to previous sourcetype1 but different sources.&lt;/P&gt;&lt;P&gt;So I need to create a clone of sourcetype1 conf with another name(sourcetype2).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:02:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/641131#M109362</guid>
      <dc:creator>Jem_17</dc:creator>
      <dc:date>2023-04-24T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/641156#M109366</link>
      <description>&lt;P&gt;1. Please use a formatted block or a code sample box to insert code into your text. It makes it more readable.&lt;/P&gt;&lt;P&gt;2. You are aware that CLONE_SOURCETYPE duplicates your events? Which - among other things - results in double license usage for affected events?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/641156#M109366</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-24T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a duplicate source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/641157#M109367</link>
      <description>&lt;P&gt;Wait a second. As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt; said - your biggest problem isn't creation or not of a sourcetype. You don't have a well-developed data onboarding process. And you are trying to use technical means to walk around an organizational problem. Even if you manage to make the "source" sourcetype visible under another name (either by applying this data-duplication recipe or by using the &lt;EM&gt;rename&lt;/EM&gt; option, noone can guarantee that your data format won't suddenly change or the "source" sourcetype won't get renamed to something else rendering your walkaround useless.&lt;/P&gt;&lt;P&gt;So try to solve organizational problems with organizational tools.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-duplicate-source-type/m-p/641157#M109367</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-24T15:49:14Z</dc:date>
    </item>
  </channel>
</rss>

