Knowledge Management

Can a navbar item link to to a Macro?

richnavis
Contributor

I would like a NavBar Menu item to link to a Macro that I have created... Is this possible? What about linking a NavBar Item to a NON Saved Search... In other words, hard code the search in the NavBar Item?

Tags (2)
0 Karma
1 Solution

ziegfried
Influencer

You can put arbitrary links into the navigation using an <a href="<url>"> tag:

<nav>
    <collection label="Some links">
        <a href="http://mysplunkserver.local:8000/manager/test/admin/macros/foo?f_ns...">Edit Macro 1</a>
        <a href="http://mysplunkserver.local:8000/app/test/flashtimeline?q=search%20index=someindex">Run serach XYZ</a>
    </collection>
    <a href="http://otherserver.com/">External Link</a>
</nav>

View solution in original post

ziegfried
Influencer

You can put arbitrary links into the navigation using an <a href="<url>"> tag:

<nav>
    <collection label="Some links">
        <a href="http://mysplunkserver.local:8000/manager/test/admin/macros/foo?f_ns...">Edit Macro 1</a>
        <a href="http://mysplunkserver.local:8000/app/test/flashtimeline?q=search%20index=someindex">Run serach XYZ</a>
    </collection>
    <a href="http://otherserver.com/">External Link</a>
</nav>

richnavis
Contributor

Thanks.. This worked nicely for me... I wasn't aware that you could run any search by specifying /flashtimeline?q=search in the URL.. Nice.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...