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!

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...