<?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: Custom Fields at index Time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23200#M177449</link>
    <description>&lt;P&gt;Thnx a lot. Tried it and that worked&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2013 13:54:05 GMT</pubDate>
    <dc:creator>adityapavan18</dc:creator>
    <dc:date>2013-08-05T13:54:05Z</dc:date>
    <item>
      <title>Custom Fields at index Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23198#M177447</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I know that splunk automatically creates default fields like host,sourcetype,index at index time.And also the  splunk provides a option to create any new fields also during index time.&lt;/P&gt;

&lt;P&gt;My requirement is that a new field needs to be added at indextime called Component.&lt;BR /&gt;
Its a constant value based on host and is not available in the eventlogs. Can anyone please suggest the way to do this  &lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23198#M177447</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-08-02T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fields at index Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23199#M177448</link>
      <description>&lt;P&gt;Something like this. props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype_here]
TRANSFORMS-addcomponent = addcomponent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[addcomponent]
SOURCE_KEY = MetaData:Host
REGEX = replace_with_your_host_here
FORMAT = component::your_value_here
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I haven't tried this out (I've no Splunk instance to test it on at the moment) but hopefully you get the general idea.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23199#M177448</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-02T11:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fields at index Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23200#M177449</link>
      <description>&lt;P&gt;Thnx a lot. Tried it and that worked&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 13:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Fields-at-index-Time/m-p/23200#M177449</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-08-05T13:54:05Z</dc:date>
    </item>
  </channel>
</rss>

