<?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: Forcing source or sourcetype just isn't working! in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13395#M1191</link>
    <description>&lt;P&gt;Be sure to check your capitalization, as it is case sensitive and DIFFERENT between different lines in transforms.conf!&lt;/P&gt;

&lt;P&gt;Here is the equivalent setup that actually worked, note the capitalization differences between SOURCE_KEY/DEST_KEY and FORMAT lines:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/path/to/files/...]
TRANSFORMS-set_sourcetype_for_files = set_sourcetype_for_files
priority = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_sourcetype_for_files]
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Sourcetype
REGEX = .*/(.*).log
FORMAT = sourcetype::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 May 2010 09:29:46 GMT</pubDate>
    <dc:creator>Jason</dc:creator>
    <dc:date>2010-05-13T09:29:46Z</dc:date>
    <item>
      <title>Forcing source or sourcetype just isn't working!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13394#M1190</link>
      <description>&lt;P&gt;I've tried everything and it seems I still can't get my stanzas in props.conf and transforms.conf to overwride sourcetype/source/host.&lt;/P&gt;

&lt;P&gt;Props.conf: (in etc/apps/clientname/local/)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/path/to/files/...]
TRANSFORMS-set_sourcetype_for_files = set_sourcetype_for_files
priority = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf: (in etc/apps/clientname/local/)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_sourcetype_for_files]
SOURCE_KEY = Metadata:Source
DEST_KEY = MetaData:Sourcetype
REGEX = .*/(.*).log
FORMAT = sourcetype::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why is this sourcetype change not sticking?&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2010 09:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13394#M1190</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-05-13T09:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing source or sourcetype just isn't working!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13395#M1191</link>
      <description>&lt;P&gt;Be sure to check your capitalization, as it is case sensitive and DIFFERENT between different lines in transforms.conf!&lt;/P&gt;

&lt;P&gt;Here is the equivalent setup that actually worked, note the capitalization differences between SOURCE_KEY/DEST_KEY and FORMAT lines:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/path/to/files/...]
TRANSFORMS-set_sourcetype_for_files = set_sourcetype_for_files
priority = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_sourcetype_for_files]
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Sourcetype
REGEX = .*/(.*).log
FORMAT = sourcetype::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 May 2010 09:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13395#M1191</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-05-13T09:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing source or sourcetype just isn't working!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13396#M1192</link>
      <description>&lt;P&gt;Just to clarify, it's &lt;CODE&gt;MetaData&lt;/CODE&gt; vs &lt;CODE&gt;Metadata&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2010 14:02:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13396#M1192</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-05-13T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing source or sourcetype just isn't working!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13397#M1193</link>
      <description>&lt;P&gt;And Sourcetype vs sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2010 21:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-source-or-sourcetype-just-isn-t-working/m-p/13397#M1193</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-07-21T21:30:07Z</dc:date>
    </item>
  </channel>
</rss>

