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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...