<?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: Problems with setting sourcetype through transformations.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-setting-sourcetype-through-transformations-conf/m-p/47936#M9065</link>
    <description>&lt;P&gt;Are you trying to extract the sourcetype out of the source field value?&lt;/P&gt;

&lt;P&gt;i.e. ---&amp;gt; /Users/admin/Documents/splunkDataToIndex/automation_logs/&lt;/P&gt;

&lt;P&gt;If so, your regex isnt matching anything.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2011 18:35:14 GMT</pubDate>
    <dc:creator>carmackd</dc:creator>
    <dc:date>2011-08-09T18:35:14Z</dc:date>
    <item>
      <title>Problems with setting sourcetype through transformations.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-setting-sourcetype-through-transformations-conf/m-p/47935#M9064</link>
      <description>&lt;P&gt;This is driving me mad - have gone through the documentation and responses to queries in here but still can't get sourcetype overrided by using a transform.  I'm missing something, I'm guessing obvious, but not obvious to me!&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///Users/admin/Documents/splunkDataToIndex/automation_logs/]  
disabled = 0  
followTail = 0  
index = automationlogs  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/Users/admin/Documents/splunkDataToIndex/automation_logs/...]  
TRANSFORMS-set_sourcetype_for_scriptlogs = set_sourcetype_for_scriptlogs  
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_scriptlogs]  
SOURCE_KEY = MetaData:Source  
DEST_KEY = MetaData:Sourcetype  
REGEX = .*/(.*?)\..*  
FORMAT = Sourcetype::$1  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jul 2011 14:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problems-with-setting-sourcetype-through-transformations-conf/m-p/47935#M9064</guid>
      <dc:creator>quixand</dc:creator>
      <dc:date>2011-07-25T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with setting sourcetype through transformations.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problems-with-setting-sourcetype-through-transformations-conf/m-p/47936#M9065</link>
      <description>&lt;P&gt;Are you trying to extract the sourcetype out of the source field value?&lt;/P&gt;

&lt;P&gt;i.e. ---&amp;gt; /Users/admin/Documents/splunkDataToIndex/automation_logs/&lt;/P&gt;

&lt;P&gt;If so, your regex isnt matching anything.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 18:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problems-with-setting-sourcetype-through-transformations-conf/m-p/47936#M9065</guid>
      <dc:creator>carmackd</dc:creator>
      <dc:date>2011-08-09T18:35:14Z</dc:date>
    </item>
  </channel>
</rss>

