<?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: How to create a custom field at Heavy Forwarder for all sourcetypes ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485876#M83179</link>
    <description>&lt;P&gt;No.  The &lt;CODE&gt;:=&lt;/CODE&gt; syntax says &lt;CODE&gt;overwrite&lt;/CODE&gt;; the &lt;CODE&gt;=&lt;/CODE&gt; syntax says &lt;CODE&gt;append&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 16:01:00 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-10-14T16:01:00Z</dc:date>
    <item>
      <title>How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485871#M83174</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
Thanks upfront for your time.&lt;/P&gt;

&lt;P&gt;I have a task that I am trying to create 2 fields for any sourcetype that visits my Heavy Forwarders on the way to my indexer cluster.&lt;BR /&gt;
I had created following props.conf at HF to assign values as below and failed :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mycustomlogg]
EVAL-HF_LVL1_NAME = myservername
EVAL-HF_LVL1_TIME = now()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This might be good question for any admin who wants to have more detail on data travel times within Splunk environment even though it might be prone to lesser performance if succeeded. &lt;/P&gt;

&lt;P&gt;Are there anybody who had achieved similar in the past ? I believe I should be able to assign HF_LVL1_NAME  with transforms.conf. However, still have no clue for now() function within conf files. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485871#M83174</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2020-09-30T02:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485872#M83175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Have a look at &lt;CODE&gt;INGEST_EVAL&lt;/CODE&gt; parameter in transforms.conf. Ref. doc &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/IngestEval"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/IngestEval&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 09:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485872#M83175</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-09-25T09:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485873#M83176</link>
      <description>&lt;P&gt;Hi, Thanks for the answer&lt;/P&gt;

&lt;P&gt;I had enabled ingest-eval as in the examples of documentation from my Heavy Forwarder. It still didn't take my custom fields, this is my configuration:&lt;BR /&gt;
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mycustomlogg]
DATETIME_CONFIG =
NO_BINARY_CHECK = true
TRANSFORMS-abc = myevalforhfname,myevalforhfname2
category = Custom
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms: (has both testing)&lt;BR /&gt;
[myevalforhfname]&lt;BR /&gt;
INGEST_EVAL = HFLVL1NAME="myservername"&lt;/P&gt;

&lt;P&gt;[myevalforhfname2]&lt;BR /&gt;
INGEST_EVAL = HFLVL1NAME2=lower("myservername")&lt;/P&gt;

&lt;P&gt;fields.conf&lt;BR /&gt;
    [HFLVL1NAME]&lt;BR /&gt;
    INDEXED = True&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[HFLVL1NAME2]
INDEXED = True
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 18:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485873#M83176</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2019-10-11T18:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485874#M83177</link>
      <description>&lt;P&gt;There is a RegEx-injection attack that you can use to match all sourcetypes, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In props.conf:
[(?::){0}*]
TRANSFORMS-arbitrary_string_here = myevalforhfname

In transforms.conf:
[myevalforhfname]
INGEST_EVAL = HFLVL1NAME:="Your hardcoded string value here"

In fields.conf:
[HFLVL1NAME]
INDEXED = True
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Oct 2019 00:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485874#M83177</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-13T00:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485875#M83178</link>
      <description>&lt;P&gt;is this syntax error ? ( := )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INGEST_EVAL :=
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 15:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485875#M83178</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2019-10-14T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485876#M83179</link>
      <description>&lt;P&gt;No.  The &lt;CODE&gt;:=&lt;/CODE&gt; syntax says &lt;CODE&gt;overwrite&lt;/CODE&gt;; the &lt;CODE&gt;=&lt;/CODE&gt; syntax says &lt;CODE&gt;append&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 16:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485876#M83179</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485877#M83180</link>
      <description>&lt;P&gt;Still have no luck, my configuration doesn't work for some reason. &lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 19:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485877#M83180</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2019-10-14T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485878#M83181</link>
      <description>&lt;P&gt;I would open a support case.  Come back and let us know what ends up fixing it!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 21:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485878#M83181</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T21:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485879#M83182</link>
      <description>&lt;P&gt;Hi, I have the same need, could you resolve this part: EVAL-HF_LVL1_TIME = now() ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485879#M83182</guid>
      <dc:creator>oangarita</dc:creator>
      <dc:date>2020-09-30T02:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485880#M83183</link>
      <description>&lt;P&gt;If you are doing a sourcetype override/overwrite, you must use the &lt;EM&gt;ORIGINAL&lt;/EM&gt; value, &lt;EM&gt;NOT&lt;/EM&gt; the new value.  You must deploy your settings to the first full instance(s) of Splunk that handle the events (usually either the HF tier if you use one, or else your Indexer tier), restart all Splunk instances there, send in new events (old events will stay broken), then test using &lt;CODE&gt;_index_earliest=-5m&lt;/CODE&gt; to be absolutely certain that you are only examining the newly indexed events.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 13:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485880#M83183</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-17T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485881#M83184</link>
      <description>&lt;P&gt;You are right, I had the &lt;CODE&gt;:=&lt;/CODE&gt; in the wrong place.  I fixed it.  In any case this is what the docs say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* When writing to a _meta field, the default behavior is to add a new
  index-time field even if one exists with the same name, the same way
  WRITE_META works for regular-expression-based extractions. For example, "a=5,
  a=a+2" adds two index-time fields to _meta: "a::5 a::7". You can change this
  by using ":=" after the variable name. For example, setting "a=5, a:=a+2"
  causes Splunk software to add a single "a::7" field.
* NOTE: Replacing index-time fields is slower than adding them. It is best to
  only use ":=" when you need this behavior.
* The ":=" operator can also be used to remove existing fields in _meta
  by assigning the expression null() to them.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 19:22:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485881#M83184</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-01-24T19:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom field at Heavy Forwarder for all sourcetypes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485882#M83185</link>
      <description>&lt;P&gt;Hi Woodcock, &lt;BR /&gt;
Thanks for the great answer again. &lt;BR /&gt;
Even though I couldn't find anything related  , I assume my config is not working thanks to version 7.0.8. We had recently upgraded to 7.3 , However, I didn't have chance to work on this again. I will update here when implement. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 19:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-custom-field-at-Heavy-Forwarder-for-all/m-p/485882#M83185</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2020-01-28T19:42:22Z</dc:date>
    </item>
  </channel>
</rss>

