directory
Version:
v0.0.0-...-8df0dc9
Opens a new window with list of versions in this module.
Published: Jul 29, 2019
License: MIT
Opens a new window with license information.
README
¶
Sample App
The sample-app
directory is a sample splunk app that exposes two REST endpoints:
- One using the python persistent server framework, and is exposed at
servicesNS/nobody/sample-app/py_interface
- One using the
splunk-persistentconn
framework written in go
and is exposed at servicesNS/nobody/sample-app/go_interface
The go-app
directory contains all the code of your actual application.
How to build and deploy
- To build the actual application in
go-app
cd go-app
go build -o ./server main.go
- Move the compiled executable into the sample Splunk app
mv ./go-app/server ./sample-app/bin
- Deploy the sample Splunk app
cp -r ./sample-app $SPLUNK_HOME/etc/apps
$SPLUNK_HOME/bin/splunk restart
Directories
¶
Click to show internal directories.
Click to hide internal directories.