Splunk Dev

Where is the python API for splunk.Intersplunk?

Jason
Motivator

Just wondering where the API is for the python module splunk.Intersplunk (used for making scripts that work on streams of events).

Tags (2)
1 Solution

Jason
Motivator

I couldn't find it on docs or Answers, but you can get a man-page style listing of the module by doing the following:

$SPLUNK_HOME/bin/splunk cmd python
(in python interpreter)
import splunk.Intersplunk
help(splunk.Intersplunk)
(when done, press q to exit the help screen, and ctrl-D or ctrl-Z to exit python)

View solution in original post

Stephen93Marsh
Explorer
$SPLUNK_HOME$\Python-2.7\Lib\site-packages\splunk\

This was asked a very long time ago, but i'm putting this here so other people can see it. This appears to have all of the common splunk imports.

If you are using an IDE such as eclipse and want to take advantage of its intellisense while working with these Splunk imports, just add the "site-packages" folder as an external source dependency.

xavierashe
Contributor

Google find all old posts. Here's another update. In v6.6.3 I found the site-packages in
$Splunk_Home/lib/python2.7/site-packages/splunk

0 Karma

Jason
Motivator

I couldn't find it on docs or Answers, but you can get a man-page style listing of the module by doing the following:

$SPLUNK_HOME/bin/splunk cmd python
(in python interpreter)
import splunk.Intersplunk
help(splunk.Intersplunk)
(when done, press q to exit the help screen, and ctrl-D or ctrl-Z to exit python)
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...