<?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 i need to index the source field value into new fields during index time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481854#M82589</link>
    <description>&lt;P&gt;please help me in indexing source field value into new fields value during index time.&lt;BR /&gt;
please help with transform/props.conf&lt;BR /&gt;
i need to extract the source field only the script name with the new field.&lt;/P&gt;

&lt;P&gt;source field value will be /splunk_home/etc/apps/bin/python.py&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 06:04:03 GMT</pubDate>
    <dc:creator>DataOrg</dc:creator>
    <dc:date>2020-04-22T06:04:03Z</dc:date>
    <item>
      <title>i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481854#M82589</link>
      <description>&lt;P&gt;please help me in indexing source field value into new fields value during index time.&lt;BR /&gt;
please help with transform/props.conf&lt;BR /&gt;
i need to extract the source field only the script name with the new field.&lt;/P&gt;

&lt;P&gt;source field value will be /splunk_home/etc/apps/bin/python.py&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 06:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481854#M82589</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-04-22T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481855#M82590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please try below config on Indexer/Heavy Forwarder whichever comes first from UF.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
TRANSFORMS-sourceextract = get_script_from_source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[get_script_from_source]
SOURCE_KEY = MetaData:Source
REGEX = ([^\/]+$)
FORMAT = script_name::$1
WRITE_META=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On Search Head&lt;/P&gt;

&lt;P&gt;fields.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script_name]
INDEXED = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 08:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481855#M82590</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-22T08:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481856#M82591</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163905"&gt;@harsmarvania57&lt;/a&gt; not working.&lt;BR /&gt;
error captured at splunkd.log&lt;/P&gt;

&lt;P&gt;04-22-2020 10:18:56.823 +0000 ERROR regexExtractionProcessor - REGEX field must be specified tranform_name=route_script_pg_thingworx&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481856#M82591</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-09-30T05:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481857#M82592</link>
      <description>&lt;P&gt;There was typo in transforms.conf configuration, it should be &lt;CODE&gt;SOURCE_KEY = MetaData:Source&lt;/CODE&gt; , not &lt;CODE&gt;Metadata:Source&lt;/CODE&gt;. I have updated my answer with correct configuration.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481857#M82592</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-22T10:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481858#M82593</link>
      <description>&lt;P&gt;@harsmarvania57 thanks its worked but it not picking a metadata value.&lt;BR /&gt;
i want to create a new field with static value(hardcoded value). how to create it ?&lt;BR /&gt;
script_name = abc.py&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481858#M82593</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-04-22T11:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481859#M82594</link>
      <description>&lt;P&gt;What do you mean by "metadata value" ? You mentioned in your question that you want to create new indexed time field based on source and now you are saying that you want to hardcode the value at index time, I am confused now. Please clarify what you want to achieve.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481859#M82594</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-22T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481860#M82595</link>
      <description>&lt;P&gt;i want to create a field with hard-corded script name value during index time itself since i cant use source field it was pointing something,  &lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481860#M82595</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-04-22T11:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481861#M82596</link>
      <description>&lt;P&gt;Remove above props &amp;amp; transforms config and try below configuration on UF&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://path/your_script.py]
_meta = script_name::abc.py
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481861#M82596</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-22T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481862#M82597</link>
      <description>&lt;P&gt;@harsmarvania57 thanks , it worked&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 06:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481862#M82597</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-04-23T06:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: i need to index the source field value into new fields during index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481863#M82598</link>
      <description>&lt;P&gt;Welcome  ..&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 10:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-need-to-index-the-source-field-value-into-new-fields-during/m-p/481863#M82598</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-23T10:13:32Z</dc:date>
    </item>
  </channel>
</rss>

