<?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: Can the Universal Forwarder overwite the source with transforms.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78454#M16059</link>
    <description>&lt;P&gt;Yes, both the props.conf and transforms.conf settings need to go on the indexer.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jan 2013 10:54:14 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-01-05T10:54:14Z</dc:date>
    <item>
      <title>Can the Universal Forwarder overwite the source with transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78451#M16056</link>
      <description>&lt;P&gt;(updated with correct solution)&lt;/P&gt;

&lt;P&gt;Question: I want to overwite the source when the UF is sending data to the Splunk server. This is how it should be.&lt;/P&gt;

&lt;P&gt;On the UF the config is splunkforwarder/etc/system/local:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///data/logs/UCMFON/*.access]
disabled = false
followTail = 1
host = $decideOnStartup
index = fon
sourcetype = access:web:ucm
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the Splunk Server (indexer) the config is splunk/system/local:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[access:web:ucm]
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=false
TIME_PREFIX=^
MAX_TIMESTAMP_LOOKAHEAD=50
TRANSFORMS-source=extract-filename-from-source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract-filename-from-source]
# /a/b/c/e1_fgh2.log
# removes directory
#
DEST_KEY=MetaData:Source
SOURCE_KEY=MetaData:Source
REGEX  = (([\w|\d|-]*)\.\w*)
FORMAT = source::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Jan 2013 13:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78451#M16056</guid>
      <dc:creator>mkelderm</dc:creator>
      <dc:date>2013-01-04T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can the Universal Forwarder overwite the source with transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78452#M16057</link>
      <description>&lt;P&gt;See &lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;here&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want to use anything in transforms.conf, it has to be done on an indexer&lt;/P&gt;

&lt;P&gt;So its valid to set the sourcetype on the UF, but the logic for setting the source will need to be moved up to your indexer(s)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 13:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78452#M16057</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-01-04T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can the Universal Forwarder overwite the source with transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78453#M16058</link>
      <description>&lt;P&gt;So I need to move my transforms.conf to the splunk-server (the indexer)? In the same directory?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2013 10:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78453#M16058</guid>
      <dc:creator>mkelderm</dc:creator>
      <dc:date>2013-01-05T10:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can the Universal Forwarder overwite the source with transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78454#M16059</link>
      <description>&lt;P&gt;Yes, both the props.conf and transforms.conf settings need to go on the indexer.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2013 10:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78454#M16059</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-05T10:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can the Universal Forwarder overwite the source with transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78455#M16060</link>
      <description>&lt;P&gt;One thing you're missing. Your regex is exactly "source:: ...." Drop the first part, source:: and it will work.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 11:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78455#M16060</guid>
      <dc:creator>qjvtenkroode</dc:creator>
      <dc:date>2013-01-08T11:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can the Universal Forwarder overwite the source with transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78456#M16061</link>
      <description>&lt;P&gt;Thanks! Fixed the issue!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 11:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-Universal-Forwarder-overwite-the-source-with-transforms/m-p/78456#M16061</guid>
      <dc:creator>mkelderm</dc:creator>
      <dc:date>2013-01-08T11:42:57Z</dc:date>
    </item>
  </channel>
</rss>

