Dashboards & Visualizations

Custom manager menu to edit files from the UI

faguilar
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!

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...