Multi-language sandbox for experimenting with Cribl Control Plane and Cloud Management SDKs
This sandbox provides examples and development environment support for the following Cribl SDKs:
- Python: cribl_control_plane_sdk_python
- TypeScript: cribl-control-plane-sdk-typescript
- Go: cribl-control-plane-sdk-go
- Python: cribl_cloud_management_sdk_python
- TypeScript: cribl-cloud-management-sdk-typescript
- Go: cribl-cloud-management-sdk-go
- Open in devcontainer - All dependencies and
.envfile are automatically set up - Configure credentials - Edit
.envwith your Cribl credentials - Run examples - Use Python, TypeScript, or Go examples
Connect to Cribl.Cloud using OAuth2 authentication:
CRIBL_ORG_ID- Your organization IDCRIBL_CLIENT_ID- OAuth2 client IDCRIBL_CLIENT_SECRET- OAuth2 client secretCRIBL_DOMAIN- Domain for Cribl Cloud (defaults tocribl.cloud)
For detailed authentication setup, see: Cribl API Documentation
Start a local Cribl Stream leader for testing:
./start-cribl.shThis provides a local environment at http://localhost:19000 with default credentials admin/admin.
To stop:
./stop-cribl.shRun examples in Python, TypeScript, or Go:
# Control Plane Examples
python examples/control-plane/python/example_cloud.py
python examples/control-plane/python/example_onprem.py
# Management Plane Examples
python examples/mgmt-plane/python/example.py
# Or use npm scripts
npm run control-plane:cloud
npm run control-plane:onprem
npm run mgmt-plane:example
# Or run Go examples directly
cd examples/control-plane/go && go run example_cloud.go
cd examples/mgmt-plane/go && go run example.goVS Code launch configurations and tasks are provided for running and debugging examples.
- 19000 - Cribl Stream UI
- 4200 - Cribl leader communication port