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

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

shrirangphadke
Path Finder

Hi !
Thank you very much for your help ! 🙂

0 Karma
Get Updates on the Splunk Community!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...