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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...