Dashboards & Visualizations

Add a link to setup page in default.xml

RiccardoV
Communicator

Hi,
i'm using splunk6 and I want to add a link to the /setup page into my default.xml.

the only way I found is to add this line into the xml file:

<a href="/manager/APP_NAME/apps/local/APP_NAME/setup?action=edit">Configuration</a>

But in this way I have the app name hardcoded into the file. Does it exist a way to make the name dynamic?

I tried something like

<a href="${make_url('app/%s/?setup=1' % APP['id'])}">Configuration</a>

but with no success.

thanks

0 Karma

amiracle
Splunk Employee
Splunk Employee

Here's what I used and it worked for me:

<a href="/manager/<splunk_app>/apps/local/<splunk_app>/setup?action=edit">Setup My App</a>

This works fine if you want to have a link to the setup page for your app. Just replace with your app's name.

Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...