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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...