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.
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.
If use Firefox's incognito window open the HTML file, it will skip the login page and display "Unauthorized."
Is there a way to solve these issues or alternative methods to display the dashboard on an external webpage?
Thanks in advance.
Which splunk version are you running?
Have you checked out Solved: How to use iframe in Splunk 8.x? - Splunk Community?
Hi PaulPanther,
My Splunk version is 9.0.3.
I tried the method within this link, but still couldn't solve the issue.
i have the same issue and no solution