Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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

View solution in original post

Highlighted

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

Path Finder

Hi !
Thank you very much for your help ! 🙂

0 Karma