This is an example TA for Splunk that demonstrates how to use the modular input framework to collect data from an API and send it to Splunk.
- UCC - https://github.com/splunk/addonfactory-ucc-generator
- PSA - https://github.com/splunk/pytest-splunk-addon
The API is a simple Flask app that returns a list of events.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
ucc-gen build
ucc-gen package --path output/Splunk_TA_Example
./scripts/run_locally.sh