<?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 source as fieldname in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27853#M4704</link>
    <description>&lt;P&gt;Some of the logs I'm tracking use source as a fieldname within the log. E.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-06-14 17:17:48.028 s=10 source=7592 source_type=2 target=7589 target_type=2 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can probably arrange to have this changed if necessary, but is there any reasonable workaround using field transforms or aliases? I tried adding a simple alias via the manager (source=gsource) but no luck there.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2011 21:28:54 GMT</pubDate>
    <dc:creator>BryantD</dc:creator>
    <dc:date>2011-06-14T21:28:54Z</dc:date>
    <item>
      <title>source as fieldname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27853#M4704</link>
      <description>&lt;P&gt;Some of the logs I'm tracking use source as a fieldname within the log. E.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-06-14 17:17:48.028 s=10 source=7592 source_type=2 target=7589 target_type=2 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can probably arrange to have this changed if necessary, but is there any reasonable workaround using field transforms or aliases? I tried adding a simple alias via the manager (source=gsource) but no luck there.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2011 21:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27853#M4704</guid>
      <dc:creator>BryantD</dc:creator>
      <dc:date>2011-06-14T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: source as fieldname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27854#M4705</link>
      <description>&lt;P&gt;The simplest approach is to create a separate transform and use a different field name.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#transforms.conf
[extract-gsource]
REGEX=source=(\S+)
FORMAT=gsource::$1

#props.conf
[mysourcetype]
REPORT-gsource = extract-gsource
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jun 2011 21:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27854#M4705</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2011-06-14T21:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: source as fieldname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27855#M4706</link>
      <description>&lt;P&gt;Works like a charm -- thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2011 21:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-as-fieldname/m-p/27855#M4706</guid>
      <dc:creator>BryantD</dc:creator>
      <dc:date>2011-06-14T21:38:25Z</dc:date>
    </item>
  </channel>
</rss>

