<?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 reset sourcetype and do field extractions using props.conf and/or transforms.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294026#M88762</link>
    <description>&lt;P&gt;Resetting it at the Indexer is "better" because it actually &lt;EM&gt;changes&lt;/EM&gt; the sourcetype but you can also &lt;EM&gt;pretend&lt;/EM&gt; that the sourcetype has been changed and refer to it by a new name by using the sourcetype &lt;CODE&gt;rename&lt;/CODE&gt; configuration on the Search Head:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Renamesourcetypes"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Renamesourcetypes&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 01:43:23 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-05-17T01:43:23Z</dc:date>
    <item>
      <title>How to reset sourcetype and do field extractions using props.conf and/or transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294024#M88760</link>
      <description>&lt;P&gt;My Splunk setup has 3 layers,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Forwarders - 50+&lt;/LI&gt;
&lt;LI&gt;Indexers - 4, running on different machines&lt;/LI&gt;
&lt;LI&gt;Search Heads - 3, running on different machines&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Question 1: Resetting the sourcetype&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
Logs are being assigned the sourcetype set in inputs.conf of the forwarders. I want to change it to a different sourcetype.&lt;/P&gt;

&lt;P&gt;Since the forwarders are being owned by a different team and they are not willing to make changes, I will need to reset the sourcetype using props.conf and transforms.conf.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Can I reset the sourcetype at the Search Head? Or should I do it at the indexer? - Which is better?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Question 2: Fields extractions&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
I need to extract four fields using props.conf.&lt;BR /&gt;
&lt;STRONG&gt;Can I do these extractions at the Search Head (the preferred option)? Or should I do it at the indexer only?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Note: I am using Splunk Enterprise&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Deepak&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 18:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294024#M88760</guid>
      <dc:creator>deepak02</dc:creator>
      <dc:date>2017-05-15T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset sourcetype and do field extractions using props.conf and/or transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294025#M88761</link>
      <description>&lt;P&gt;Hello @deepak02&lt;/P&gt;

&lt;P&gt;A) For sourcetype renaming you can do this.&lt;BR /&gt;
Add to your &lt;CODE&gt;props.conf&lt;/CODE&gt; on your indexer/s.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TRANSFORMS-sourcetype_renaming = renaming_old_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add to your &lt;CODE&gt;transforms.conf&lt;/CODE&gt; on your indexer/s.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[renaming_old_sourcetype]
SOURCE_KEY = MetaData:Source
REGEX = &amp;lt;regex matching your source of events&amp;gt;
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::&amp;lt;new_sourcetype&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;B) You should read this pages of Splunk documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#When_to_use_inline_or_transform_extractions"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#When_to_use_inline_or_transform_extractions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 19:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294025#M88761</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-05-15T19:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset sourcetype and do field extractions using props.conf and/or transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294026#M88762</link>
      <description>&lt;P&gt;Resetting it at the Indexer is "better" because it actually &lt;EM&gt;changes&lt;/EM&gt; the sourcetype but you can also &lt;EM&gt;pretend&lt;/EM&gt; that the sourcetype has been changed and refer to it by a new name by using the sourcetype &lt;CODE&gt;rename&lt;/CODE&gt; configuration on the Search Head:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Renamesourcetypes"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Renamesourcetypes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 01:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reset-sourcetype-and-do-field-extractions-using-props/m-p/294026#M88762</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-17T01:43:23Z</dc:date>
    </item>
  </channel>
</rss>

