Dashboards & Visualizations

Is there any way to integrate the flexibility of a Django web framework app with app creation using the Splunk UI?

shrirangphadke
Path Finder

Sorry if my question doesn't make sense.

There are two types of app development in Splunk:

  1. Django web framework app
  2. App creation using Splunk UI

Both the methods have their own advantages and disadvantages, for ex:
- Django gives you more flexibility but lacks easy app development
- App creation using splunk UI lets you easily develop an app but lacks flexibility

Is there any way by which we can integrate both? I mean can I develop few features in UI and few in Django.
If yes then how can we achieve that

Please help.

0 Karma
1 Solution

stephanefotso
Motivator

Hello!

In your Django app, you can integrate both xml, html, and Django's views

  1. To integrate your django's views, just put your html files in $SPLUNK_HOME/etc/apps/your_app_name/django/your_app_name/templates
  2. To integrate xml views, just put your xml files on $SPLUNK_HOME/etc/apps/your_app_name/default/data/ui/views
  3. To integrate simple html files (for example when you convert a xml dashboard to html view ), put your html files in $Splunk/etc/apps/your_app_name/appserver/static/html/

You can create and access your xml views via splunk web: settings -->user interface--> views,

The nav menu on settings -->user interface--> Navigation Menu let you manage all your pages. Here is an example

<nav>
    <view name="my_xml_view" default="true"/>
    <a href="/dj/redirector/Steph_Django/my_django_page">my first django page</a>
       ...
</nav>

Conclusion: With your django app, you can develop features in UI and Django
Thanks

SGF

View solution in original post

stephanefotso
Motivator

Hello!

In your Django app, you can integrate both xml, html, and Django's views

  1. To integrate your django's views, just put your html files in $SPLUNK_HOME/etc/apps/your_app_name/django/your_app_name/templates
  2. To integrate xml views, just put your xml files on $SPLUNK_HOME/etc/apps/your_app_name/default/data/ui/views
  3. To integrate simple html files (for example when you convert a xml dashboard to html view ), put your html files in $Splunk/etc/apps/your_app_name/appserver/static/html/

You can create and access your xml views via splunk web: settings -->user interface--> views,

The nav menu on settings -->user interface--> Navigation Menu let you manage all your pages. Here is an example

<nav>
    <view name="my_xml_view" default="true"/>
    <a href="/dj/redirector/Steph_Django/my_django_page">my first django page</a>
       ...
</nav>

Conclusion: With your django app, you can develop features in UI and Django
Thanks

SGF

shrirangphadke
Path Finder

Hi !
Thank you very much for your help ! 🙂

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