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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...