<?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 overwrite the host field value with dvc field value ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350676#M64372</link>
    <description>&lt;P&gt;Hi Micahkemp, could you please guide me on this issue.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 14:55:53 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2018-02-02T14:55:53Z</dc:date>
    <item>
      <title>How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350665#M64361</link>
      <description>&lt;P&gt;Hi All, I have a request from the client to overwrite the host field value with the dvc field value from the interesting field in splunk. &lt;/P&gt;

&lt;P&gt;example :&lt;/P&gt;

&lt;P&gt;index = firewall host=test01 sourcetype=opsec | table host dvc_host&lt;/P&gt;

&lt;P&gt;We could see that host = test01 and dvc_host =  test02.xxxx.com&lt;/P&gt;

&lt;P&gt;Actual requirement: &lt;BR /&gt;
We want  overwrite the "host" field for logs to use to value for the "dvc" field = test02.xxx.com  instead of test01 and also wanted to  remove ".xxxx.com " so that "test02.xxxxx.com" is written to the "host" field as "test02".&lt;/P&gt;

&lt;P&gt;Kindly guide me how to overwrite host value = test01 with dvc filed=test02.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 17:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350665#M64361</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-30T17:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350666#M64362</link>
      <description>&lt;P&gt;Hi @Hemnaath,&lt;BR /&gt;
Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = firewall host=test01 sourcetype=opsec | table host dvc_host|rex field=dvc_host"(?&amp;lt;host&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this run anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval  host = "test01", dvc_host = "test02.xxxx.com"|rex field=dvc_host"(?&amp;lt;host&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 18:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350666#M64362</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-30T18:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350667#M64363</link>
      <description>&lt;P&gt;Do you want to change the indexed value of &lt;CODE&gt;host&lt;/CODE&gt;, or just the value at search time?  If the former you would need to use an index-time transform to set the value of &lt;CODE&gt;MetaData:Host&lt;/CODE&gt;.  From the transforms.conf doc:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hostoverride]
DEST_KEY = MetaData:Host
REGEX = \s(\w*)$
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2018 21:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350667#M64363</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-30T21:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350668#M64364</link>
      <description>&lt;P&gt;Hi thanks for your effort on this, but it did not fetch the result as expected.  After executing the above query I had got the below output. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=firwall | rex field=dvc "(?&amp;lt;host&amp;gt;\w+)" | table host dvc 

     host            dvc
      test01        test02
      test02 

      test01         test03 
      test03   

 Event details:

 time=1517397957|loc=10718231|fileid=1517392517|action=decrypt|**orig=test02.xxxx.com**|i/f_dir=inbound|i/f_name=bond0.470|has_accounting=0|uuid=&amp;lt;5a71a7c5,00000005,30f08e0a,c0000000&amp;gt;|product=VPN-1 &amp;amp; FireWall-1|inzone=External|outzone=Internal|rule=250|rule_uid={DAE6-F7DD-4167-BCAC-1DE4B472}|rule_name=DNS|service_id=domain-udp|src=10.x.x.x|s_port=577|dst=dip02.xxxx.com|service=domain-udp|proto=udp|scheme:=IKE|methods:=ESP: AES-128 + SHA1 + PFS (group 2)|peer gateway=VPN_AWS_Gateway_Prod2|community=vpn-xxxxe799|fw_subproduct=VPN-1|vpn_feature_name=VPN|__policy_id_tag=product=VPN-1 &amp;amp; FireWall-1[db_tag={0181B41F-6A86-E04C-8E1E-38146FBFD921};**mgmt=test01**;date=1517158905;policy_name=Global-2]|origin_sic_name=CN=test02.xxxx.com,O=dron01.xxxx.com.evv25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in the selected field host=test01,test02, test03 etc&lt;/P&gt;

&lt;P&gt;Note: test01 is the source from where the data is ingested into splunk and other hosts values are found in the events.&lt;/P&gt;

&lt;P&gt;Need to over ride the host=test01 when the data is getting indexed itself. So kindly guide me how to fix this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:10:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350668#M64364</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-31T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350669#M64365</link>
      <description>&lt;P&gt;can you provide the output of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firwall | rex field=dvc_host "(?&amp;lt;host&amp;gt;\w+)" | table host dvc dvc_host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As here regex is applied on &lt;CODE&gt;dvc_host&lt;/CODE&gt; field&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350669#M64365</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-31T12:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350670#M64366</link>
      <description>&lt;P&gt;Hi Micahkemp, thanks for your effort on this, yes i need  change the value of the host. currently host=test01 is the source from where the data is being ingested in to splunk and other host details are found in the event data.&lt;/P&gt;

&lt;P&gt;With the help of the forum, I had executed the below query to overwrite the "host" field for logs to use to value for the "dvc" field and also to remove ".xxxx.com " and write to the "host" field without xxxx.com. &lt;BR /&gt;
But it did not work as expected, it included the other host details test02,test03 etc  under the host field along with the host=test01.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firwall sourcetype="opsec:vpn" | rex field=dvc  "(?&amp;lt;host&amp;gt;[^\.]+)" | table host dvc 

     host            dvc
      test01        test02
      test02 

      test01         test03 
      test03   

Event details:
time=1517397957|loc=10718231|fileid=1517392517|action=decrypt|**orig=test02.xxxx.com**|i/f_dir=inbound|i/f_name=bond0.470|has_accounting=0|uuid=&amp;lt;5a71a7c5,00000005,30f08e0a,c0000000&amp;gt;|product=VPN-1 &amp;amp; FireWall-1|inzone=External|outzone=Internal|rule=250|rule_uid={DAE6-F7DD-4167-BCAC-1DE4B472}|rule_name=DNS|service_id=domain-udp|src=10.x.x.x|s_port=577|dst=dip02.xxxx.com|service=domain-udp|proto=udp|scheme:=IKE|methods:=ESP: AES-128 + SHA1 + PFS (group 2)|peer gateway=VPN_AWS_Gateway_Prod2|community=vpn-xxxxe799|fw_subproduct=VPN-1|vpn_feature_name=VPN|__policy_id_tag=product=VPN-1 &amp;amp; FireWall-1[db_tag={0181B41F-6A86-E04C-8E1E-38146FBFD921};**mgmt=test01**;date=1517158905;policy_name=Global-2]|origin_sic_name=CN=test02.xxxx.com,O=dron01.xxxx.com.evv25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Getting the other host details under selected fields, along with the host=test01 &lt;/P&gt;

&lt;P&gt;Note: test01 is the source from where the data is ingested into splunk and other hosts values are found in the events.&lt;/P&gt;

&lt;P&gt;Need to over ride the host=test01 when the data is getting indexed itself and in the host field we should get only the host values  &lt;STRONG&gt;orig=test02.xxxx.com&lt;/STRONG&gt; from the event data.&lt;/P&gt;

&lt;P&gt;Props.conf Details:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opsec:vpn]
KV_MODE          = none

REPORT-0policy_id_tag_for_opsec     = policy_id_tag_for_opsec,mgmt_for_opsec,
REPORT-action_as_threat_emulation_action = action_as_threat_emulation_action
REPORT-auto_kv_for_opsec            = auto_kv_for_opsec

FIELDALIAS-dvc_for_opsec       = orig as dvc 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are lot many  EVAL and FIELDALIAS in the props for this sourcetype. &lt;/P&gt;

&lt;P&gt;Transforms.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opsec_sourcetype_vpn]
REGEX = fw_subproduct\=VPN-1
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::opsec:vpn

[action_as_threat_emulation_action]
REGEX = action\=([^|]+)
FORMAT = te_action::$1

[auto_kv_for_opsec]
REGEX = ([^|=]*)\b:?=([^|]*)
FORMAT = $1::$2

[policy_id_tag_for_opsec]
REGEX  = __policy_id_tag\=([^|]+)
FORMAT = policy_id_tag::$1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me how to overwrite host value = test01 with dvc filed=test02.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350670#M64366</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-31T12:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350671#M64367</link>
      <description>&lt;P&gt;hey regex got applied to the field dvc  and i have already pasted the output in my previous comment. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350671#M64367</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-01-31T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350672#M64368</link>
      <description>&lt;P&gt;This config needs to go on the indexers or first heavy forwarders that see the events.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]
TRANSFORMS-orig_as_host = orig_as_host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[orig_as_host]
REGEX = orig=([^|]+)\|
DEST_KEY = MetaData:Host
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: you &lt;EM&gt;must&lt;/EM&gt; use the name of the sourcetype the event comes in with where I have &lt;CODE&gt;&amp;lt;sourcetype&amp;gt;&lt;/CODE&gt; above.  Specifically you can't change the sourcetype via TRANSFORM and then have that new sourcetypes TRANSFORMS also run.&lt;/P&gt;

&lt;P&gt;Also, this is a change for events that come in after the change is made.  This will not affect events that have already been indexed.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 16:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350672#M64368</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-01T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350673#M64369</link>
      <description>&lt;P&gt;Hi Micahkemp, Based on the below query I could see there are four sourcetype which are fetching the information from the destination.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firewall sourcetype="opsec*"  "orig"  | rex field=_raw "orig=(?&amp;lt;host&amp;gt;[^(\.|\|)]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sourcetype : &lt;BR /&gt;
    [opsec]&lt;BR /&gt;
    [opsec:smartdefense]&lt;BR /&gt;
    [opsec:vpn]&lt;BR /&gt;
    [opsec:audit]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Props.conf:

[opsec]
TRANSFORMS-orig_as_host = orig_as_host
transforms.conf:
[orig_as_host]
 REGEX = orig=([^|]+)\|
 DEST_KEY = MetaData:Host

Props.conf 
[opsec:vpn]
TRANSFORMS-orig_as_host = orig_as_host

transforms.conf:
[orig_as_host]
 REGEX = orig=([^|]+)\|
 DEST_KEY = MetaData:Host
 FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me whether the above props.conf and transforms are correct.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350673#M64369</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-01T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350674#M64370</link>
      <description>&lt;P&gt;But do the events initially come in as all of those sourcetypes, or are they rewritten at search or index time?  My guess (and that's all it is, a guess) is they come in as &lt;CODE&gt;opsec&lt;/CODE&gt;, so you may only need:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opsec]
TRANSFORMS-orig_as_host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [orig_as_host]
 REGEX = orig=([^|]+)\|
 DEST_KEY = MetaData:Host
 FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350674#M64370</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-01T17:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350675#M64371</link>
      <description>&lt;P&gt;Hi Micahkemp,  After implementing this changes in splunk HF instance where the parsing is happening , the events stopped ingesting into splunk, when tried to search for the output , I got zero result.&lt;/P&gt;

&lt;P&gt;Props.conf: &lt;BR /&gt;
 [opsec]&lt;BR /&gt;
 TRANSFORMS-orig_as_host&lt;/P&gt;

&lt;P&gt;Transforms.conf: &lt;BR /&gt;
 [orig_as_host]&lt;BR /&gt;
  REGEX = orig=([^|]+)|&lt;BR /&gt;
  DEST_KEY = MetaData:Host&lt;BR /&gt;
  FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;index=firwall  sourcetype="opsec*"&lt;/P&gt;

&lt;P&gt;Zero result. &lt;/P&gt;

&lt;P&gt;Similarly before applying the changes, I tried to execute the query with the regex which you had mentioned in your comment and it was throwing an error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firewall  sourcetype="opsec*" | rex field=_raw "orig=([^|]+)\|"  | table host dvc

Error in 'rex' command: The regex 'orig=([^|]+)\|' does not extract anything. It should specify at least one named group. Format: (?&amp;lt;name&amp;gt;...).

The search job has failed due to an error. You may be able view the job in the Job Inspector.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me on this please..&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350675#M64371</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350676#M64372</link>
      <description>&lt;P&gt;Hi Micahkemp, could you please guide me on this issue.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350676#M64372</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-02T14:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350677#M64373</link>
      <description>&lt;P&gt;Hi Micahkemp, as we are unable to over write host" field for logs to use to value for the "dvc" field . Kindly guide me on this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350677#M64373</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-02T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350678#M64374</link>
      <description>&lt;P&gt;hi micahkemp, could you please guide me on this .&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350678#M64374</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-02T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350679#M64375</link>
      <description>&lt;P&gt;This is still on my list, but I'm working several other things right now as well.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350679#M64375</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-02T18:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350680#M64376</link>
      <description>&lt;P&gt;hey try this on the &lt;STRONG&gt;indexer&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;props.conf &lt;STRONG&gt;(indexer&lt;/STRONG&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [&amp;lt;sourcetype&amp;gt;]
 TRANSFORMS-host_override = host_override
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf (&lt;STRONG&gt;indexer&lt;/STRONG&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host_override]
REGEX = orig=([^\.|\|]+)
DEST_KEY = MetaData:Host
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350680#M64376</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-02T18:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350681#M64377</link>
      <description>&lt;P&gt;Hi Micahkemp,  could you please guide me to fix this issue. I am still unable to fix this issue.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 12:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350681#M64377</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-05T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350682#M64378</link>
      <description>&lt;P&gt;Hi Mayurr, thanks for your effort on this, I have not pushed this change yet, since we have three different source types  configured to fetch data. In this case can I configure the props.conf and transforms.conf like this.&lt;/P&gt;

&lt;P&gt;Props.conf &lt;BR /&gt;
[opsec]&lt;BR /&gt;
  TRANSFORMS-host_override1 = host_override1&lt;/P&gt;

&lt;P&gt;[opsec:vpn]&lt;BR /&gt;
TRANSFORMS-host_override2 = host_override2&lt;/P&gt;

&lt;P&gt;[opsec:audit]&lt;BR /&gt;
TRANSFORMS-host_override3 = host_override3&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;BR /&gt;
 [host_override1]&lt;BR /&gt;
 REGEX = orig=(?[^(.||)]+)&lt;BR /&gt;
 DEST_KEY = MetaData:Host&lt;BR /&gt;
 FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;[host_override2]&lt;BR /&gt;
 REGEX = orig=(?[^(.||)]+)&lt;BR /&gt;
 DEST_KEY = MetaData:Host&lt;BR /&gt;
 FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;[host_override3]&lt;BR /&gt;
 REGEX = orig=(?[^(.||)]+)&lt;BR /&gt;
 DEST_KEY = MetaData:Host&lt;BR /&gt;
 FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;Kindly guide me on this. &lt;BR /&gt;
thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350682#M64378</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350683#M64379</link>
      <description>&lt;P&gt;Try doing for one sourcetype.If it is working for you then do it for all.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350683#M64379</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-05T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to overwrite the host field value with dvc field value ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350684#M64380</link>
      <description>&lt;P&gt;I can't see how the changes you implemented could have resulted in missing data.&lt;/P&gt;

&lt;P&gt;As for the &lt;CODE&gt;rex&lt;/CODE&gt; warning, &lt;CODE&gt;rex&lt;/CODE&gt; needs named capture groups (&lt;CODE&gt;(?&amp;lt;name&amp;gt;...)&lt;/CODE&gt;), but index-time transforms can't use named capture groups, instead using numbered (which are automatically numbered when using parentheses in the regex).&lt;/P&gt;

&lt;P&gt;After making this change, was new data indexed for you to search on?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 16:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-overwrite-the-host-field-value-with-dvc-field-value/m-p/350684#M64380</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-05T16:46:45Z</dc:date>
    </item>
  </channel>
</rss>

