Dashboards & Visualizations

Custom manager menu to edit files from the UI

Path Finder

Hi fellow Splunkers!

I have a question about editing/customizing the Splunk manager menus for web editing my app files.

I have my working app which includes this structure (two sql queries that I will execute within the folder myapp/bin/SQL like so:
+ bin
.| -- + SQL
.| --- | - query1.sql
.| --- | - query2.sql

My question is, if there is a simple and easy way of make a text editor for qyery1.sql and query2.sql from Splunk's web UI, using the Splunk's config files/xml as "parent". Like you normally modify your savedsearches using the web editor.

So, in summary, I will have two screens/xml pages:
- The first one, where I can see the list of available files in /myapp/bin/SQL like so:
alt text

  • And the second one where I can modify and save any of those files, like if they where savedsearches: alt text

So I will be able to change the queries via Splunk Web just as I can modify the savedsearches. I just need an xml for listing the files and another one with a textfield editor and a save button.

I can move the .sql files to other folder if necessary.

I spent two days searching for some examples but I couldn't find any. Do you have any ideas or examples that I can use as a base? My main goal is to make it simple and as if it was a Splunk default configuration file.

Thank you very much!

0 Karma
Get Updates on the Splunk Community!

Observability Unveiled: Navigating OpenTelemetry's Framework and Deployment Options

Observability Unveiled: Navigating OpenTelemetry's Framework and Deployment Options A recent Tech Talk, ...

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...