Splunk Dev

How to create a Splunk Web application using Splunk python SDK?

harshal_chakran
Builder

Hi,

I want to know how to create an application using the Splunk's python SDK which will run on Splunk's web interface.
And is it possible also to create visualisation charts using python logic??

Please Help...!!!

Tags (3)
0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

The web framework in Splunk 6 includes Django so you can build your web app in Python using the Django Bindings and Splunk Python SDK and this will be served up by the Splunk Web Server.

There are several Django charting packages you could also take advantage of ie: https://github.com/areski/django-nvd3

You'll find all you need to know here : http://dev.splunk.com/view/webframework-djangobindings/SP-CAAAEM6

This link shows how to use the Splunk Python SDK in your Django View : http://dev.splunk.com/view/SP-CAAAEMP

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

The web framework in Splunk 6 includes Django so you can build your web app in Python using the Django Bindings and Splunk Python SDK and this will be served up by the Splunk Web Server.

There are several Django charting packages you could also take advantage of ie: https://github.com/areski/django-nvd3

You'll find all you need to know here : http://dev.splunk.com/view/webframework-djangobindings/SP-CAAAEM6

This link shows how to use the Splunk Python SDK in your Django View : http://dev.splunk.com/view/SP-CAAAEMP

0 Karma

Damien_Dallimor
Ultra Champion

This link from my answer, http://dev.splunk.com/view/SP-CAAAEMP , demonstrates how to incorporate server side python code to perform some processing then render the results using a Django template.

0 Karma

harshal_chakran
Builder

Thanks Damien!!!
Is there any method where I can use python code to create a scripts and show the result on splunk UI. As my queries are bit complex and length, I need to implement some logic in python language and use to display on web. Plus even I need to where to put this python script in order to run it first.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...