<?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: 'host' field being populated automatically when indexing a report in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/553587#M157172</link>
    <description>&lt;P&gt;I'm not sure if I understood your question correctly, but basically you should do it on SPL like "eval host=orig_host", when you are populating the new index. &amp;nbsp;If you are populating the new index directly from UF then you must use props.conf and transforms.conf and there EVAL_INGEST = host:=orig_host.&lt;/P&gt;&lt;P&gt;You can look those from&amp;nbsp;&lt;A href="https://conf.splunk.com/files/2020/slides/PLA1154C.pdf" target="_blank"&gt;https://conf.splunk.com/files/2020/slides/PLA1154C.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you share those SPL/conf files etc. how you are currently doing it?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 20:45:51 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2021-05-28T20:45:51Z</dc:date>
    <item>
      <title>'host' field being populated automatically when indexing a report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/553540#M157158</link>
      <description>&lt;P&gt;I have a report that is getting events from an existing index, processing the data and indexing again to another custom Index I've created.&lt;/P&gt;&lt;P&gt;The original index have the "host" field populated with the indexer hostname. I need to replace this value with the value of another field. For that (and more) reason I've created a new index and a report, schedule and configure it to populate the new index. The report shows the information exactly as I need.&lt;/P&gt;&lt;P&gt;The problem is when the report is being indexed to the new index: The "host" field is being populated with the indexer as value (as in original index) and the value that I need to be in host field is in another field automatically created and named "orig_host".&lt;/P&gt;&lt;P&gt;How can I fix that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 15:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/553540#M157158</guid>
      <dc:creator>denissotoacc</dc:creator>
      <dc:date>2021-05-28T15:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: 'host' field being populated automatically when indexing a report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/553587#M157172</link>
      <description>&lt;P&gt;I'm not sure if I understood your question correctly, but basically you should do it on SPL like "eval host=orig_host", when you are populating the new index. &amp;nbsp;If you are populating the new index directly from UF then you must use props.conf and transforms.conf and there EVAL_INGEST = host:=orig_host.&lt;/P&gt;&lt;P&gt;You can look those from&amp;nbsp;&lt;A href="https://conf.splunk.com/files/2020/slides/PLA1154C.pdf" target="_blank"&gt;https://conf.splunk.com/files/2020/slides/PLA1154C.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you share those SPL/conf files etc. how you are currently doing it?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 20:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/553587#M157172</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-05-28T20:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: 'host' field being populated automatically when indexing a report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/554088#M157300</link>
      <description>&lt;P&gt;Hi Soutamo. Thanks for your response. I am populating the new index with a report that extract and process data from another existing index.&lt;BR /&gt;&lt;BR /&gt;My search/report looks like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;index=OldIndex
#SOME OTHER COMMANDS THAT WE NEED TO EXECUTE
| eval host = SomeOtherField
| fields + host, metric_label, metric_value
| collect index=NewIndex&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The result event looks exactly as I need: Only 3 fields, and host field populated correctly. I've scheduled it to run every 5 minutes.&lt;BR /&gt;But then, in the "NewIndex" the data is being populated like "OldIndex": with the same fields and the "host" with the original value.&lt;BR /&gt;&lt;BR /&gt;What is the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 12:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/554088#M157300</guid>
      <dc:creator>denissotoacc</dc:creator>
      <dc:date>2021-06-02T12:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: 'host' field being populated automatically when indexing a report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/554097#M157302</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you should use host=&amp;lt;your host&amp;gt; etc with collect. See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Collect" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 13:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/host-field-being-populated-automatically-when-indexing-a-report/m-p/554097#M157302</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-06-02T13:17:40Z</dc:date>
    </item>
  </channel>
</rss>

