A framework to generate UI based Splunk Add-ons. It includes UI, Rest handler, Modular input, Oauth, Alert action templates.
UCC stands for Universal Configuration Console. It is a service for generating Splunk Add-ons which is easily customizable and flexible. UCC provides basic UI template for creating Addon's UI. It is helpful to control the activity by using hooks and other functionalities.
- Generate UCC based addons for your Splunk Technology Add-ons
- Addon package and globalConfig.json file
Note: You may refer the globalConfig.json file here
"splunk-add-on-ucc-framework" can be installed via pip
from PyPI
:
$ pip3 install splunk-add-on-ucc-framework
To build the UCC based addon follow the below steps:
- Install the
splunk-add-on-ucc-framework
viapip3
. - Run the
ucc-gen
command. - Make sure that
package
folder andglobalConfig.json
file are present in the addon folder. - The final addon package will be generated, in the
output
folder.
By the running the ucc-gen
command, the following steps are executed:
-
Cleaning out the
output
folder. -
Retrieve the package ID of addon.
-
Copy UCC template directory under
output/<package_ID>
directory. -
Copy
globalConfig.json
file tooutput/<package_ID>/appserver/static/js/build
directory. -
Collect and install Addon's requirements into
output/<package_ID>/lib
directory of addon's package. -
For the addon's requirements, packages are installed according to following table:
File Name Description Output directory in UCC build lib/requirements.txt Python2/Python3 compatible packages output/<package_ID>/lib lib/py2/requirements.txt Only Python2 compatible packages output/<package_ID>/lib/py2 lib/py3/requirements.txt Only Python3 compatible packages output/<package_ID>/lib/py3 -
Replace tokens in views.
-
Copy addon's
package/*
tooutput/<package_ID>/*
directory. -
If an addon requires some additional configurations in packaging than implement the steps in additional_packaging.py
splunk-add-on-ucc-framework supports the following params:
Name | Description |
---|---|
source | Folder containing the app.manifest and app source |
config | Path to the configuration file, Defaults to GlobalConfig.json in the parent directory of source provided |
ta-version | Optional override Current version of TA, Default version is version specified in globalConfig.json a Splunkbase compatible version of SEMVER will be used by default |