<?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 setup a field extract, field transform to change sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195674#M38912</link>
    <description>&lt;P&gt;Stanzas in props.conf are typically tied to sourcetype. So, once you assign an event to a source type, you would be able to use props.conf to write a field extraction. If you are just renaming a field by using a FIELDALIAS, you can configure it all in props.conf. &lt;/P&gt;

&lt;P&gt;If you are creating field names via regex, or working with key/value pairs and need to define a header row, you will also need to use transforms.conf as well.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2014 22:02:41 GMT</pubDate>
    <dc:creator>tskinnerivsec</dc:creator>
    <dc:date>2014-11-04T22:02:41Z</dc:date>
    <item>
      <title>How do I setup a field extract, field transform to change sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195672#M38910</link>
      <description>&lt;P&gt;I am struggling with the relationship between the field extract and the field transformation with regards to sourcetype.&lt;BR /&gt;
Given a basic line: &lt;CODE&gt;Nov 1 host service[1001]&lt;/CODE&gt;&lt;BR /&gt;
I would like to take this and assign it the sourcetype "service"&lt;BR /&gt;
index is john&lt;BR /&gt;
sourcetype is john_service&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[john] 
TRANSFORM-sourcetype = john_service
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[john_service]
REGEX =\s(\w+)\[
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::john_service
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The initial input gets set to: index=john, sourcetype=john&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 20:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195672#M38910</guid>
      <dc:creator>bliss989</dc:creator>
      <dc:date>2014-11-04T20:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I setup a field extract, field transform to change sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195673#M38911</link>
      <description>&lt;P&gt;Please provide you inputs.conf entry for this log to know the index and sourcetype initially used and some real sample logs.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 21:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195673#M38911</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-04T21:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I setup a field extract, field transform to change sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195674#M38912</link>
      <description>&lt;P&gt;Stanzas in props.conf are typically tied to sourcetype. So, once you assign an event to a source type, you would be able to use props.conf to write a field extraction. If you are just renaming a field by using a FIELDALIAS, you can configure it all in props.conf. &lt;/P&gt;

&lt;P&gt;If you are creating field names via regex, or working with key/value pairs and need to define a header row, you will also need to use transforms.conf as well.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 22:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-setup-a-field-extract-field-transform-to-change/m-p/195674#M38912</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2014-11-04T22:02:41Z</dc:date>
    </item>
  </channel>
</rss>

