All Apps and Add-ons

Creating an APP and setting a custom HTML Webpag

ppatrikfr
Path Finder

Hello everybody,

Well, i'm trying to create a new application on splunk but and i want to create a new custom page to substitute splunk's default search page, but i dont know how to do that i search on splunk answer a little bit but anything works to me.

Idk where to put my HTML page and how set Splunk to get those pages.

If someone could help and put more details about paths, etc.

Obs.: I just create my app and i don't have anything inside, any dashboard or whatever. My app is called CCM_Reports and i create with barebone template.

0 Karma

pdaigle_splunk
Splunk Employee
Splunk Employee

This is done by modifying the navigation menu which is defined in the default.xml file located in the following path:

$SPLUNK_HOME/etc/apps//default/data/ui/nav/

You can find more information on this as well as how to make other customizations similar to this here:

http://dev.splunk.com/view/SP-CAAAEP9

The actual views or the content of the landing page will go in:

$SPLUNK_HOME/etc/apps//default/data/ui/views/

The static content for the HTML files go into the following paths:

$SPLUNK_HOME/etc/apps/your_app_name/appserver/static/

Under here you would have directories and associated files for html, css, images, and js. Here's some documentation around this too:

https://docs.splunk.com/Documentation/Splunk/7.1.1/AdvancedDev/UseCSS

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...