Getting Data In

host override not working

dkloud
Explorer

Hello,

We are using the Splunk app for checkpoint to ingest checkpoint logs via a heavy forwarder.

The host is always reported as the management server and we want to override that with the IPs of the actual firewalls.

I created the following files in the local folders on the heavy forwarder:

props.conf

[cp_log]
TRANSFORMS-host_override = host_override

transforms.conf

[host_override]
REGEX = origin=([^|]+)
DEST_KEY = MetaData:Host
FORMAT = host::$1

Restarted Splunk but there's no change, the host value remains the same.

btool shows that the local props and transforms files are applied.

I can even see the Field transformation on the heavy forwarder UI.

I've also checked that the regex works fine and extracts the correct values.

Any ideas?

Thank you!

Labels (2)

dkloud
Explorer

Hi,

I finally made it work by editing the

/opt/splunk/etc/system/local/props.conf and transform.conf files

instead of the ones in:

/opt/splunk/etc/apps/TA-check-point-app-for-splunk/local

Regards,

isoutamo
SplunkTrust
SplunkTrust
In indexing those files on system/local always wins. You should use
splunk btool props list —debug <your sourcetype>
To see what and where configs are valid.

dkloud
Explorer

origin=10.10.10.10 is (one of ) the firewalls IPs that we want to be present in the host field

isoutamo
SplunkTrust
SplunkTrust
You are sure that this is the first full enterprise instance on path where those events are coming?

dkloud
Explorer

Hi @gcusello ,

Sure, here's one "anonymized" log 🙂

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

Regards,

gcusello
SplunkTrust
SplunkTrust

Hi @dkloud ,

the hostname you want to set is the one after "hostname=", is it correct?

if this is your requirent, please, try this:

[host_override]
REGEX = hostname\=([^|]+)
DEST_KEY = MetaData:Host
FORMAT = host::$1

probably the problem is that "=" is a special char so you have to escape it.

Ciao.

Giuseppe

0 Karma

dkloud
Explorer

Hi @gcusello ,

As said, in the end it worked by editing the /opt/splunk/etc/system/local props and transforms files

So the regex was correct after all, I didn't have to escape the "=" sign.

Thanks for the suggestion though!

Regards,

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @dkloud,

could you share a sample of your logs?

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...