Splunk Dev

Using Anaconda with Splunk to ingest Python script

EricLloyd79
Builder

I have to use the library PySNMP to retrieve MiBs and ingest them in Splunk with Python.
I have been given clearance on the production server to install Anaconda and create an environment with PySNMP in it in order to do this. That being said, this makes sense cause I was informed i should not add or remove libraries from the native Splunk Python install.
How can I use the Anaconda environment Python version to run the scripts that I put in the Splunk UI to have data ingestion. I know if it was a separate Python install, I could just point to the Python version I want to use at the top but since its in an environment now, Im not sure what I can do.
Thanks

0 Karma

roryab
Splunk Employee
Splunk Employee

Take a look at the MLTK SA add ons.

It uses exactly this method to ship an anaconda python environment and load it using the TA.

Mac: [https://splunkbase.splunk.com/app/2881/][1]

Linux 64-bit: [https://splunkbase.splunk.com/app/2882/][2]

Linux 32-bit: [https://splunkbase.splunk.com/app/2884/][3]

Windows 64-bit: [https://splunkbase.splunk.com/app/2883/][4]
0 Karma

kmugglet
Communicator

Do you mean you want to ingest the MIBs into Splunk using Anaconda/Python, or collect them with Anaconda/Python and then ingest into Splunk?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...