Splunk Dev

Is there a way to compile a custom alert python script?

kingjeo2
New Member

Hi, I wanna ask if there is a way to obfuscate/hide a python code that works on Splunk? Tried Cython and py_compile to no avail. Or am I just doing it wrong? Any help would be greatly appreciated. Thank you very much!

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@kingjeo2

Have tried this?

SPLUNK_HOME/bin/splunk cmd python <<PYTHON_FILE_PATH>>

0 Karma

kingjeo2
New Member

Hi, what does that do exactly? Thanks.

0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...