Dashboards & Visualizations

help on an hyperlink towards static folder

jip31
Motivator

hi

I need to add an hyperlink in my dashboard
I use the xml code below but impossible to reach the target
what is the problem please?

<row>
    <panel>
      <html>
 <p>
          <a href="/static/app/SA_xx_xx_xx_xx_xx_sh/home.jpg" target="_blank">Patches</a> 
        </p>
  </html>
    </panel>
  </row>
Tags (1)
0 Karma
1 Solution

niketn
Legend

@jip31 the above should work provided you have restarted/refreshed Splunk after uploading the image home.jpg insided your app's ( SA_xx_xx_xx_xx_xx_sh ) appserver/static folder. If you are getting 404 Not Found error then it implies that
1) You either do not have static file in the right place or
2) You have not restarted/refreshed your Splunk instance after uploading the static file.
3) You need to clear your Browser history or try new browser session in InPrivate/Incongnito mode.

Following is a run anywhere example which opens dashboard.css in the search app.

<dashboard>
  <label>Static File link in Dashboard Clone</label>
  <row>
    <panel>
      <html>
        <div>
          <a href="/static/app/search/dashboard.css">Open dashboard.css</a>
        </div>
      </html>
    </panel>
  </row>
</dashboard>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@jip31 the above should work provided you have restarted/refreshed Splunk after uploading the image home.jpg insided your app's ( SA_xx_xx_xx_xx_xx_sh ) appserver/static folder. If you are getting 404 Not Found error then it implies that
1) You either do not have static file in the right place or
2) You have not restarted/refreshed your Splunk instance after uploading the static file.
3) You need to clear your Browser history or try new browser session in InPrivate/Incongnito mode.

Following is a run anywhere example which opens dashboard.css in the search app.

<dashboard>
  <label>Static File link in Dashboard Clone</label>
  <row>
    <panel>
      <html>
        <div>
          <a href="/static/app/search/dashboard.css">Open dashboard.css</a>
        </div>
      </html>
    </panel>
  </row>
</dashboard>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

jip31
Motivator

Many thanks to you

0 Karma

jitendragupta
Path Finder

You have already created a hyperlink. The text "patches" in working as a hyperlink. If you want more you can decorate your hyperlink like this:

 <row>
     <panel>
       <html>
  <p>
           <a href="http://blogs.bmc.com/wp-content/uploads/2016/06/database-blue.png" target="_blank" style="font-style: oblique; text-decoration: underline;">Patches</a> 
         </p>
   </html>
     </panel>
   </row>
0 Karma

jip31
Motivator

yes I have created an hyperlink but it is wrong because I dont know how to query an url in static

0 Karma

vnravikumar
Champion

Hi

Please let me know your target URL

0 Karma

jip31
Motivator

HI
what do you want exactly?
To my mind the beginning of the target is :
https://x/fr-FR/app/SA_xx_xx_xx_xx_xx_sh

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...