Refine your search:

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?

asked 04 May '12, 08:12

rnavis's gravatar image

rnavis
410310
accept rate: 25%


One Answer:

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>
link

answered 04 May '12, 09:13

ziegfried's gravatar image

ziegfried ♦
10.0k1618
accept rate: 52%

edited 04 May '12, 17:53

sideview's gravatar image

sideview ♦
25.5k3543

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.

(09 May '12, 08:54) rnavis
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40
×35

Asked: 04 May '12, 08:12

Seen: 375 times

Last updated: 09 May '12, 08:54

Copyright © 2005-2012 Splunk Inc. All rights reserved.