examples/

directory
v0.0.0-...-8df0dc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2019 License: MIT

README

Sample App

The sample-app directory is a sample splunk app that exposes two REST endpoints:

  1. One using the python persistent server framework, and is exposed at servicesNS/nobody/sample-app/py_interface
  2. 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

  1. To build the actual application in go-app
cd go-app
go build -o ./server main.go
  1. Move the compiled executable into the sample Splunk app
mv ./go-app/server ./sample-app/bin
  1. Deploy the sample Splunk app
cp -r ./sample-app $SPLUNK_HOME/etc/apps
$SPLUNK_HOME/bin/splunk restart

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL