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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...