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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...