Dashboards & Visualizations

IFrameInclude module

fresned
Path Finder

I'm trying to use the IFrameInclude module to read and display values from a text file. I keep getting an issue where the file can not be found. The file is 777 for permissions and is located in /opt/splunk/etc/apps/appname/. Here is what I'm using for the setup.

module name="IFrameInclude"
layoutPanel="panel_row1_col1"
param name="src">server_info.txt param name="check_exists">False param name="height">25</param
/module

Tags (2)
0 Karma
1 Solution

rroberts
Splunk Employee
Splunk Employee

Its going to look for the text file here...
$SPLUNK_HOME/etc/apps/$APPNAME/appserver/static
But IFrameInclude module src parameter is expecting a URL to a remote source.
Check http://yoursplunkserver:8000/en-US/modules#Splunk.Module.IFrameInclude

This is the URL to a remote resource to be displayed in the module. Supports remote URI's (ie., http://foobar.com/hello), local app static files (ie., hello.html found in $SPLUNK_HOME/etc/apps/$APPNAME/appserver/static) and relative locations (ie., /manager).

You might was to use the ServerSideInclude module and then an HTML file you use as a wrapper.

View solution in original post

rroberts
Splunk Employee
Splunk Employee

Its going to look for the text file here...
$SPLUNK_HOME/etc/apps/$APPNAME/appserver/static
But IFrameInclude module src parameter is expecting a URL to a remote source.
Check http://yoursplunkserver:8000/en-US/modules#Splunk.Module.IFrameInclude

This is the URL to a remote resource to be displayed in the module. Supports remote URI's (ie., http://foobar.com/hello), local app static files (ie., hello.html found in $SPLUNK_HOME/etc/apps/$APPNAME/appserver/static) and relative locations (ie., /manager).

You might was to use the ServerSideInclude module and then an HTML file you use as a wrapper.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...