Getting Data In

Would a Python Virtual Environment be compatible with Splunkbase and Splunk Cloud?

harry26
Observer

Trying to develop an app that has a the 'cryptography' library as a dependancy. The built in Splunk Python interpreter refuses to be compatible with it (believe something to do with the cpython that it requires). I solved the issue by using a virtual environment within the app which is then called using subprocess. 

The main thing I am concerned about it cross compatibility between different operating systems and architectures as this is env is created locally on my machine.  Would it be a better for this virtual environment be created using python on the target machine when the app is used for the first time / after setup page. If so would this pass the Splunk App inspection in order to be compatable with Splunkbase and Splunk Cloud?    

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@harry26 - Few scenarios here:

Are you able to create a virtual environment with Splunk's Python or an external Python build?

  • Splunk's Python
    • Great, you passed 1 step.
  • External Python
    • Either you need to ask users to install Python externally.
      • Won't be possible in Splunk Cloud.
    • Ship the Python build with App.
      • Most likely App-inspect will fail due to the size of the App bundle and the executable present inside of it.

----

  • Regarding Compatibility: You need to run a POC and check it with Splunk Cloud.
  • Regarding whether Splunk would allow it: Please post a question to appinspect@splunk.com 

 

Hope this helps. Kindly accept the answer and upvote the answer if this helps!!

0 Karma

harry26
Observer

Creating an environment using Splunk's Python has produced the same issue as just using the Splunk Python interpreter itself. So it seems the only way is to bundle an environment create separately from Splunk. I did run the app through App Inspect and managed to get no errors with a separate environment, I believe the app size is not an issue as well, but it did return a lot of manual checks were required

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@harry26 - Then probably you can check them high-level and try submitting the App and see if Splunk has any issues or not.

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...