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!

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