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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...