Hi guys I am new to splunk
I am wondering is it possible to display external web page like "www.google.com" in splunk like a html iframe?
I tried html iframe:
iframe src="google.com"
But it gave me an error message - "Splunk cannot find the "google.com" view."
How do I change the link search to external web page
Thanks in advance.
Yes, it is possible. You need to add it within a row of the dashboard, and include HTML tags. Here's an example:
<?xml version='1.0' encoding='utf-8'?>
<dashboard>
<label>My Google Dashboard</label>
<row>
<html>
<h2>Embedded Web Page!</h2>
<iframe src="http://www.google.com" width="100%" height="300">></iframe>
</html>
</row>
</dashboard>
If you are good in html and javascript,
Hope this helps you
You need to specify the protocol too (e.g. "http://google.com"). Here is a working example:
<dashboard>
<label>test_iframe</label>
<row>
<panel>
<iframe src="http://textcritical.com"/>
</panel>
</row>
</dashboard>
That said, your browser will likely access due to Google from an iframe because Google sets the X-Frame-Options header such that it prevents browsers from displaying google.com in a iframe (thats why I used a different domain in the example).
Yes, it is possible. You need to add it within a row of the dashboard, and include HTML tags. Here's an example:
<?xml version='1.0' encoding='utf-8'?>
<dashboard>
<label>My Google Dashboard</label>
<row>
<html>
<h2>Embedded Web Page!</h2>
<iframe src="http://www.google.com" width="100%" height="300">></iframe>
</html>
</row>
</dashboard>
It works. Better use a localhost:8000 to host index.html than Google. It complains security issue.