Security

Create a custom web page for the Splunk web server to host

jones4bob
Explorer

Is there a way to create a simple web page that I can serve up from the Splunk server? I'm not at the point where I can create a custom app.

I have Afterglow (the script, not the app) working and I would like to pipe some firewall logs into afterglow (and neato) to generate a graph of some network traffic every few minutes. If I could host a page locally, I could point my browser to this page and use a simple refresh to keep showing an image of the last few minutes of traffic. This can act as an alert to suspicious activity when the image changes dramatically from the norm.

Tags (1)
0 Karma
1 Solution

Lowell
Super Champion

You can easily host static web content (.html, .css, .js, etc), if that's what your asking about. All you have to do is drop your web files in an application folder under the "appserver" "static" folder, for example:

$SPLUNK_HOME/etc/apps/<YOUR_APP>/appserver/static/<my_page.html>

You can then access that file via HTTP at the following location:

http://<YOUR_SPLUNK_SERVER>:8000/en-US/static/app/<YOUR_APP>/<my_page.html>;

I would suggest creating a custom app for this kind of stuff, even if it only contains a few few files. Creating a new "app" isn't a very difficult process. (Of course, you could simply host this file in an existing app, but then you run the risk of your stuff being overwritten during an upgrade.)

View solution in original post

Lowell
Super Champion

You can easily host static web content (.html, .css, .js, etc), if that's what your asking about. All you have to do is drop your web files in an application folder under the "appserver" "static" folder, for example:

$SPLUNK_HOME/etc/apps/<YOUR_APP>/appserver/static/<my_page.html>

You can then access that file via HTTP at the following location:

http://<YOUR_SPLUNK_SERVER>:8000/en-US/static/app/<YOUR_APP>/<my_page.html>;

I would suggest creating a custom app for this kind of stuff, even if it only contains a few few files. Creating a new "app" isn't a very difficult process. (Of course, you could simply host this file in an existing app, but then you run the risk of your stuff being overwritten during an upgrade.)

Get Updates on the Splunk Community!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...