Dashboards & Visualizations

How to embed the dashboard in my own webpage

Mirella
Engager

HI, I want to embed the dashboard in my own webpage.

First, I found the "EDFS" APP, but after installing it and following the steps, I didn't see the "EDFS" option in the input. When this include in the HTML file, it will responds with "refused to connect" :

 

<iframe src="https://127.0.0.1:9999" seamless frameborder="no" scrolling="no" width="1200" height="2500"></iframe>

 

Also, if add "trustedIP=127.0.0.1" in the server.conf file, when open Splunk web using "127.0.0.1:8000", it shows an "Unauthorized" error.

Mirella_0-1710843047686.png

Additionally, I found that adding "x_frame_options_sameorigin = 0" and "enable_insecure_login = true" in the web.conf file, and including this in the HTML file:

 

<iframe src="http://splunkhost/account/insecurelogin?username=viewonlyuser&password=viewonly&return_to=/app/search/dashboardname" seamless frameborder="no" scrolling="no" width="1200" height="2500"></iframe>

 

It will show the Splunk web login page, with the error message "No cookie support detected. Check your browser configuration." If try to login with the username and password, it still doesn't work and shows a "Server error" message.

Mirella_0-1712024446910.png

If use Firefox's incognito window open the HTML file, it will skip the login page and display "Unauthorized."

Mirella_3-1710843452370.png

Is there a way to solve these issues or alternative methods to display the dashboard on an external webpage?

Thanks in advance.

LSN-Dev
Loves-to-Learn Everything

Did anyone ever get success or not in embed the dashboard, on the external web site/app?

I am still struggling on it.

If anyone, please help us.

Or give us a hint.

Thanks,

Tags (3)
0 Karma

PaulPanther
Motivator

Which splunk version are you running?

Have you checked out Solved: How to use iframe in Splunk 8.x? - Splunk Community?

0 Karma

Mirella
Engager

Hi PaulPanther,

My Splunk version is 9.0.3.

I tried the method within this link, but still couldn't solve the issue.

0 Karma

helmi1987
Engager

i have the same issue and no solution

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...