Dashboards & Visualizations

Html output in splunk dashboard

balash1979
Path Finder

In my splunk dashboard, I want to call a webpage and display the output of the webpage in my dashboard.
When I go to the link, it displays a long text and I want to see the text in the dashboard. how can I accomplish this ?

Tags (1)
0 Karma

renjith_nair
Legend

@balash1979 ,

Try using iframe

   <dashboard>
       <label>URLs in Iframe</label>
       <row>
         <html>

           <body>
             <iframe src="URL of your webpage" width="100%" height="300">
             </iframe>
           </body>
         </html>
       </row>
     </dashboard>

https://answers.splunk.com/answers/768900/drilldown-to-url-to-display-in-iframe.html#answer-769679

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

balash1979
Path Finder

From the browser, i am our hitting api. If the put the same url in splunk under the iframe src link, i get "refused to connect". Do i have to do anything special in the code above ?

0 Karma

renjith_nair
Legend

Most probably the URL you are trying to connect does not accept a connection from iFrame
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy

If it's owned by you, then probably you can adjust the settings and if not, you might need to index the data from API and visualize it

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

balash1979
Path Finder

It is owned by IT in my company. is indexing the data from API can be done in splunk code ?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...