Developing for Splunk Enterprise

Reload changed python code without restarting splunk?

arjitg
Engager

Hi All , My query was is there any way we can reload the changed python script without restarting the splunk everytime? 

I understand we have _bump for javascript and CSS & debug/refresh for .conf files but do we have a similiar command for changed python scripts as well?

Thanks & Regards

AG.  

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Please describe your use case.  I change the Python code in my apps often and never need to restart Splunk.

---
If this reply helps you, an upvote would be appreciated.

View solution in original post

Funderburg78
Path Finder

Even better question, I recently learned python, how do I take what I learned and use it in splunk?  Explanation links to articles are fine answers!  Yes, I give Karma!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please ask a new question rather than hijack a thread.

---
If this reply helps you, an upvote would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please describe your use case.  I change the Python code in my apps often and never need to restart Splunk.

---
If this reply helps you, an upvote would be appreciated.

View solution in original post

arjitg
Engager

Hi @richgalloway ! Thanks for this. So does it mean that you don't have to restart the Splunk server whenever you make any changes to your python code in "bin" folder? You can save the code and it should run fine whenever we are triggering this code through JS ? 

In my use case, I am trying to encrypt password using python script. My JS is calling this python script &  sending that encrypted password  to Splunk to display.

Thanks

AG.  

 

  

0 Karma
.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!