Splunk Add-on SDK formerly UCC is a build and code generation framework
Project description
splunk-add-on-ucc-framework
A framework to generate Splunk Add-ons. It includes UI, Rest handler, Modular input, Oauth, Alert action templates.
What is UCC?
UCC is Universal Configuration Console. It is a service for Generating Splunk Add-ons which is easily customizable and flexible. It is helpful to control the activity by using hooks and other functionalities. UCC provides basic UI template for creating Addon's UI.
Features
- Generate ucc based addons for your Splunk Technology Add-ons
Requirements
- Addon package and globalConfig.json file
Note: You may refer the globalConfig.json file here
Installation
You can install "splunk-add-on-ucc-framework" via pip
from PyPI
:
$ pip3 install splunk-add-on-ucc-framework
How to use
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
directory andglobalConfig.json
file present in the directory - The final addon package will be generated, at
output
directory.
Workflow
By the running the ucc-gen
command, the following steps came in action:
- Cleaning out the
output
directory - 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 were 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
Params
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for splunk_add_on_ucc_framework-4.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0640821ec82849fb5a651d532304dfdfa0404aa2ef6e079fb5f2790eabde0239 |
|
MD5 | bde932ed0c7f18a55aa218360b3ffeef |
|
BLAKE2b-256 | 0c262e3ea2ea8b7f37946815085b7ebab641c9442f1e72298dfa4b62606b74f2 |
Hashes for splunk_add_on_ucc_framework-4.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24f114bf6b747b8450b7573c9bdc23f8ed7524834a1f06c610dfa6a7ba928cb |
|
MD5 | bd8f4db5a929a1aaeeed16a5c81eb40c |
|
BLAKE2b-256 | 7df0eb70e529ed50dd9625a35bafd7d0b1d5e6ab6173dd64363ea8504311dfc0 |