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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...