<?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: Adding statis field at index time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466342#M80341</link>
    <description>&lt;P&gt;if you really must, you can do it ...&lt;BR /&gt;
however, there are many other ways &lt;BR /&gt;
for example, have the &lt;CODE&gt;source&lt;/CODE&gt; field have the required environment or create a unique index for each environment data, as if its the same data and carries same sourcetype, you can always search all and split by sourcetype for example.&lt;BR /&gt;
another option, as you mentioned is in search time, tags are a good candidate for that kind of job&lt;/P&gt;

&lt;P&gt;hope it helps &lt;/P&gt;</description>
    <pubDate>Sat, 26 Oct 2019 15:50:28 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-10-26T15:50:28Z</dc:date>
    <item>
      <title>Adding statis field at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466341#M80340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to add extra field at index time.&lt;BR /&gt;
The field is &lt;STRONG&gt;"Name of DEV/QA/Prod environment"&lt;/STRONG&gt;, which never changes during its hosts life-cycle.&lt;BR /&gt;
What would be the best way to do that?&lt;BR /&gt;
I don't want to do that at search time, because &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;it is something that needs to be for all sources.&lt;/LI&gt;
&lt;LI&gt;it is static&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;According to Splunk Doc, its not recommended: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Caution: Do not add custom fields to the set of default fields that Splunk software automatically extracts and indexes at index time unless absolutely necessary. &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Please, advise if there are any ideas. &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 03:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466341#M80340</guid>
      <dc:creator>bkonurbayev</dc:creator>
      <dc:date>2019-10-26T03:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding statis field at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466342#M80341</link>
      <description>&lt;P&gt;if you really must, you can do it ...&lt;BR /&gt;
however, there are many other ways &lt;BR /&gt;
for example, have the &lt;CODE&gt;source&lt;/CODE&gt; field have the required environment or create a unique index for each environment data, as if its the same data and carries same sourcetype, you can always search all and split by sourcetype for example.&lt;BR /&gt;
another option, as you mentioned is in search time, tags are a good candidate for that kind of job&lt;/P&gt;

&lt;P&gt;hope it helps &lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 15:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466342#M80341</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-10-26T15:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding statis field at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466343#M80342</link>
      <description>&lt;P&gt;I agree with Splunk.  If I were you, I would do an automatic lookup &lt;EM&gt;only&lt;/EM&gt; for the &lt;CODE&gt;sourcetype(s)&lt;/CODE&gt; that need to map the &lt;CODE&gt;host&lt;/CODE&gt; to it's particular key/value pair for this information.  This way, you are not clogging your disk space with static data that is the same for every event.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 22:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-statis-field-at-index-time/m-p/466343#M80342</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-26T22:23:12Z</dc:date>
    </item>
  </channel>
</rss>

