<?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 Use hostname variables in index_time EVAL in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Use-hostname-variables-in-index-time-EVAL/m-p/494614#M84441</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I am trying to add a custom field on every events that coming from a Heavy-Forwarder, so that from search I can know which HF the evnets are going thru.&lt;/P&gt;

&lt;P&gt;Here is my configuration in a HF:&lt;BR /&gt;
props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
TRANSFORMS-addHF = addHF
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[addHF]
INGEST_EVAL = hf="my-hf-01"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hf]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So instead of hardcoding the hostname for every HF, I am trying to find a way to use an OS variable such as hostname in the INGEST_EVAL.&lt;/P&gt;

&lt;P&gt;Any idea how to achieve this?&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;BR /&gt;
S&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 23:06:34 GMT</pubDate>
    <dc:creator>season88481</dc:creator>
    <dc:date>2020-05-06T23:06:34Z</dc:date>
    <item>
      <title>Use hostname variables in index_time EVAL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-hostname-variables-in-index-time-EVAL/m-p/494614#M84441</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I am trying to add a custom field on every events that coming from a Heavy-Forwarder, so that from search I can know which HF the evnets are going thru.&lt;/P&gt;

&lt;P&gt;Here is my configuration in a HF:&lt;BR /&gt;
props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
TRANSFORMS-addHF = addHF
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[addHF]
INGEST_EVAL = hf="my-hf-01"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hf]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So instead of hardcoding the hostname for every HF, I am trying to find a way to use an OS variable such as hostname in the INGEST_EVAL.&lt;/P&gt;

&lt;P&gt;Any idea how to achieve this?&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;BR /&gt;
S&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 23:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-hostname-variables-in-index-time-EVAL/m-p/494614#M84441</guid>
      <dc:creator>season88481</dc:creator>
      <dc:date>2020-05-06T23:06:34Z</dc:date>
    </item>
  </channel>
</rss>

