<?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 override not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521105#M88063</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28016"&gt;@dkloud&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share a sample of your logs?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 16:01:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-23T16:01:30Z</dc:date>
    <item>
      <title>host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521103#M88062</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using the Splunk app for checkpoint to ingest checkpoint logs via a heavy forwarder.&lt;/P&gt;&lt;P&gt;The host is always reported as the management server and we want to override that with the IPs of the actual firewalls.&lt;/P&gt;&lt;P&gt;I created the following files in the local folders on the heavy forwarder:&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[cp_log]&lt;BR /&gt;TRANSFORMS-host_override = host_override&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[host_override]&lt;BR /&gt;REGEX = origin=([^|]+)&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;&lt;P&gt;Restarted Splunk but there's no change, the host value remains the same.&lt;/P&gt;&lt;P&gt;btool shows that the local props and transforms files are applied.&lt;/P&gt;&lt;P&gt;I can even see the Field transformation on the heavy forwarder UI.&lt;/P&gt;&lt;P&gt;I've also checked that the regex works fine and extracts the correct values.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521103#M88062</guid>
      <dc:creator>dkloud</dc:creator>
      <dc:date>2020-09-23T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521105#M88063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28016"&gt;@dkloud&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share a sample of your logs?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521105#M88063</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-23T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521107#M88064</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sure, here's one "anonymized" log &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;time=1600865570|hostname=ckpman|product=Firewall|action=Drop|ifdir=inbound|ifname=eth2-01.123|loguid={0x512344ba,0x123,0x6612300a,0x3fff1234}|origin=10.10.10.10|originsicname=CN\=editedfwname,O\=ckpman..aaaaaa|sequencenum=1|time=1600865570|version=5|dst=192.168.0.20|message_info=Address spoofing|proto=17|s_port=137|service=137|src=192.168.0.10&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521107#M88064</guid>
      <dc:creator>dkloud</dc:creator>
      <dc:date>2020-09-23T16:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521108#M88065</link>
      <description>&lt;P&gt;origin=10.10.10.10 is (one of ) the firewalls IPs that we want to be present in the host field&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521108#M88065</guid>
      <dc:creator>dkloud</dc:creator>
      <dc:date>2020-09-23T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521119#M88066</link>
      <description>You are sure that this is the first full enterprise instance on path where those events are coming?</description>
      <pubDate>Wed, 23 Sep 2020 17:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521119#M88066</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-23T17:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521135#M88067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I finally made it work by editing the&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/opt/splunk/etc/system/local/&lt;/STRONG&gt;props.conf and transform.conf files&lt;/P&gt;&lt;P&gt;instead of the ones in:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/opt/splunk/etc/apps/TA-check-point-app-for-splunk/local&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 18:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521135#M88067</guid>
      <dc:creator>dkloud</dc:creator>
      <dc:date>2020-09-23T18:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521150#M88069</link>
      <description>In indexing those files on system/local always wins. You should use&lt;BR /&gt;splunk btool props list —debug &amp;lt;your sourcetype&amp;gt;&lt;BR /&gt;To see what and where configs are valid.</description>
      <pubDate>Wed, 23 Sep 2020 20:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521150#M88069</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-23T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521220#M88075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28016"&gt;@dkloud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the hostname you want to set is the one after "hostname=", is it correct?&lt;/P&gt;&lt;P&gt;if this is your requirent, please, try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host_override]
REGEX = hostname\=([^|]+)
DEST_KEY = MetaData:Host
FORMAT = host::$1&lt;/LI-CODE&gt;&lt;P&gt;probably the problem is that "=" is a special char so you have to escape it.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521220#M88075</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-24T07:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: host override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521298#M88092</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As said, in the end it worked by editing the /opt/splunk/etc/system/local props and transforms files&lt;/P&gt;&lt;P&gt;So the regex was correct after all, I didn't have to escape the "=" sign.&lt;/P&gt;&lt;P&gt;Thanks for the suggestion though!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 15:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-override-not-working/m-p/521298#M88092</guid>
      <dc:creator>dkloud</dc:creator>
      <dc:date>2020-09-24T15:01:32Z</dc:date>
    </item>
  </channel>
</rss>

