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 |
---|---|---|
requirements.txt | Python2/python3 compatible packages | output/<package_ID>/lib |
requirements_py2.txt | Only Python2 compatible packages | output/<package_ID>/lib/py2 |
requirements_py3.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 | Current version of TA, Default version is version specified in globalConfig.json |
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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 501e21ea77b70bc62ff5c25a6798e0debab79bb4fce153f8adfd27a39c881939 |
|
MD5 | 5b50f54e1282a0877e9ce15e93babd01 |
|
BLAKE2b-256 | 9d288d35ebcc20b6c0eb64e176fac6f9367501c9968b7434eca2a4875af87a43 |
Hashes for splunk_add_on_ucc_framework-4.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cba9c2a4634bb50240dd978c860ba31ffa9f5886091787b7056fae7e43d57ed |
|
MD5 | 72f1fad648ba3681de3942b6df0a372c |
|
BLAKE2b-256 | 33935a21538e1faaaf720fb4c288515e3f9fda58519c79d6191f90cf6461e356 |