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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...