Splunk Search

Want to make a button to link to a URL!

oda
Communicator

I want to make a button to link to a URL.
Looking at the Answer, I found it.May be I can do it by using java.
But I want to complete with Search.
Is that possible?

sample search

    <html>
      <center>
        <p>google</p>
        <button>
           <div>
       <li><a href="http://www.google.com/">Google</a></li>
        </div>
      </button>
      </center>
    </html>

Tags (1)
0 Karma
1 Solution

oda
Communicator

Sorry.
I was self resolved.
Although it did not work in IE(Windows Server 2012R2), it worked using another browser from another terminal.

View solution in original post

0 Karma

oda
Communicator

Sorry.
I was self resolved.
Although it did not work in IE(Windows Server 2012R2), it worked using another browser from another terminal.

0 Karma

harishalipaka
Motivator
 var openDashboard = function(){
        window.location.pathname = "/en-US/app/pulsedevapp/adani_dashboard_html2_jeet_clone";
      };



      $('#btnhome').on('click', openDashboard);
Thanks
Harish
0 Karma

niketn
Legend

What do you mean by "But I want to complete with Search."? Do you want to pass tokens from search to the link? Also where is the URL pointing i.e. internal to Splunk like dashboard or to external link?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...