Splunk Dev

Add Python Modules

JosIJntema
Explorer

Hi there,

I would like to use the googleads package for Python to import data from Google into Splunk. We already have the Scientific Computing App for Splunk.

How could we import the googleads package in either the regular Search app or the Scientific Computing app?

Installing it with pip does not seem to do the trick.

Tags (2)

badarsebard
Communicator

There is a new app called PyDen which should allow you to install any module you need by creating a virtual environment from a compiled version of Python. You would need to do the following:

  1. Install PyDen and PyDen Manager from Splunkbase
  2. Ensure your system has all the required libraries to compile Python from source
  3. Run the "createdist" command for the version of Python you want to use
  4. Run the createvenv command and specify your version and a name for the environment
  5. Run the pip command to install googleads module to the virtual environment

Now when you want to use the virtual environment all you need do is execute a function from the activation.py script at the top of your script and Splunk will run your script using the virtual environment.

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@JoslJntema - Which Python for Scientific Computing add-on from Splunkbase are using? I just want to make sure your post is tagged appropriately. Thank you.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

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 ...