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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...