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 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)CRIBL_WORKSPACE_NAME- Workspace name (defaults tomain)
For detailed authentication setup, see: Cribl API Documentation
Connect to an on-premise Cribl Control Plane:
CRIBL_SERVER_URL- Server URL (e.g.,http://localhost:19000,https://localhost:9000, orhttps://cribl.example.com:8000)CRIBL_USERNAME- Username (defaults toadmin)CRIBL_PASSWORD- Password (defaults toadmin)CRIBL_INSECURE_TLS- Accept self-signed certificates for HTTPS connections (defaults totruefor development convenience, set tofalsefor production)
Self-Signed Certificates: By default, the on-premise examples accept self-signed TLS certificates when connecting via HTTPS (useful for development/testing). Set CRIBL_INSECURE_TLS=false to enforce strict certificate verification in production environments.
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/control-plane/go && go run example_onprem.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