<?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: Convert sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106481#M22423</link>
    <description>&lt;P&gt;Perhaps have a look here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Renamesourcetypes"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Renamesourcetypes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the closest you are going to get, I'm afraid. &lt;CODE&gt;sourcetype&lt;/CODE&gt; is one of those things that cannot be truly changed after the data has been indexed. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2013 19:11:57 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-10-18T19:11:57Z</dc:date>
    <item>
      <title>Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106480#M22422</link>
      <description>&lt;P&gt;I've got a file that was previously indexed as sourcetype1 but I want it to be customer_sourcetype2.  I thought there was a way in splunk to have splunk, at search time, reassign that search type.  Am I wrong?&lt;/P&gt;

&lt;P&gt;I thought I could do this with a props.conf entry:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/path/to/file/filename.log]
    sourcetype = customer_sourcetype2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Someone correct my understanding?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 18:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106480#M22422</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-10-18T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106481#M22423</link>
      <description>&lt;P&gt;Perhaps have a look here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Renamesourcetypes"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Renamesourcetypes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the closest you are going to get, I'm afraid. &lt;CODE&gt;sourcetype&lt;/CODE&gt; is one of those things that cannot be truly changed after the data has been indexed. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 19:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106481#M22423</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-18T19:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106482#M22424</link>
      <description>&lt;P&gt;Just found that as well...&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 19:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106482#M22424</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2013-10-18T19:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106483#M22425</link>
      <description>&lt;P&gt;Oh wow thanks!  I'm guessing that won't work if I can only specify the source.  There are other sources with the same sourcetype1 which I don't want to change sourcetypes for.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::/path/to/file/filename.log]&lt;BR /&gt;
    rename = customer_sourcetype2&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 19:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106483#M22425</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-10-18T19:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106484#M22426</link>
      <description>&lt;P&gt;Yea - looks like that's the case.&lt;/P&gt;

&lt;P&gt;rename = &lt;STRING&gt;&lt;BR /&gt;
* Renames [&lt;SOURCETYPE&gt;] as &lt;STRING&gt;&lt;BR /&gt;
* With renaming, you can search for the [&lt;SOURCETYPE&gt;] with sourcetype=&lt;STRING&gt;&lt;BR /&gt;
* To search for the original source type without renaming it, use the field _sourcetype.&lt;BR /&gt;
* Data from a a renamed sourcetype will only use the search-time configuration for the target sourcetype.&lt;BR /&gt;
  Field extractions (REPORTS/EXTRAXCT) for this stanza sourcetype will be ignored.&lt;BR /&gt;
* Defaults to empty.&lt;/STRING&gt;&lt;/SOURCETYPE&gt;&lt;/STRING&gt;&lt;/SOURCETYPE&gt;&lt;/STRING&gt;&lt;/P&gt;

&lt;P&gt;From: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 19:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106484#M22426</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-10-18T19:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106485#M22427</link>
      <description>&lt;P&gt;yeah, well, no. It's like;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[sourcetype_1]&lt;BR /&gt;
rename = sourcetype_2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The renaming can only be done on a &lt;CODE&gt;[sourcetype]&lt;/CODE&gt;, not a &lt;CODE&gt;[source::/path/to/file]&lt;/CODE&gt; or a &lt;CODE&gt;[host::hostname]&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 20:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106485#M22427</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-18T20:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106486#M22428</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 14:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-sourcetype/m-p/106486#M22428</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-10-25T14:25:13Z</dc:date>
    </item>
  </channel>
</rss>

