<?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: Overwrites to multiple indexed fields possible in one transforms.conf stanza? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73978#M15134</link>
    <description>&lt;P&gt;That was my thought/concern as well. Came into work this morning and added a second transforms call in the props and it did the trick. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2012 15:01:50 GMT</pubDate>
    <dc:creator>Runals</dc:creator>
    <dc:date>2012-09-28T15:01:50Z</dc:date>
    <item>
      <title>Overwrites to multiple indexed fields possible in one transforms.conf stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73976#M15132</link>
      <description>&lt;P&gt;We have some syslog feeds coming directly into an indexer. While this will eventually get addressed with forwarders I'd like to overwrite both the source and host indexed fields. &lt;BR /&gt;
The forwarded syslogs looke like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timestamp Forwarded from IP_address: whatever blah blah blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and we are capturing the forwared from IP address in the following stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[forwarded]
DEST_KEY = MetaData:Host
REGEX = Forwarded\sfrom\s([^: ]+):
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since I'd like to also grab the "whatever" and put it into the source field I'm wondering if I need to do that with a separate stanza in the transforms.conf file or if it can be included in the existing one. If it does require a second stanza in transforms can I call that from a second line in the props.conf stanza? For example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[source blah]
TRANSFORMS-1=forwared
TRANSFORMS-2=forwared2

transforms.conf
[forwarded]
--as above--

[forwarded2]
DEST_KEY = MetaData:Source
REGEX = Forwarded\sfrom\s\d+\.\d+\.\d+\.\d+: (\S+)
FORMAT = source::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Have I overlooked anything?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 00:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73976#M15132</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2012-09-28T00:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrites to multiple indexed fields possible in one transforms.conf stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73977#M15133</link>
      <description>&lt;P&gt;Because of needing to set &lt;CODE&gt;DEST_KEY&lt;/CODE&gt;, I think your second approach with two different &lt;CODE&gt;TRANSFORMS-xxx&lt;/CODE&gt; rules in props is the proper configuration.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 03:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73977#M15133</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-09-28T03:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrites to multiple indexed fields possible in one transforms.conf stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73978#M15134</link>
      <description>&lt;P&gt;That was my thought/concern as well. Came into work this morning and added a second transforms call in the props and it did the trick. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overwrites-to-multiple-indexed-fields-possible-in-one-transforms/m-p/73978#M15134</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2012-09-28T15:01:50Z</dc:date>
    </item>
  </channel>
</rss>

