Skip to content

splunk/splunk-example-ta

Repository files navigation

Splunk_TA_Example

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.

Frameworks and tools used

API

The API is a simple Flask app that returns a list of events.

Quick start locally with Docker

./scripts/run_locally.sh

Build and package TA

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

Notable PRs

  • Custom REST handlers - #4
  • Add KVStore checkpoint for modular input - #5
  • Delete KVStore checkpoint when input is deleted - #6