Skip to content

michalbiesek/cribl-sdk-sandbox

Repository files navigation

cribl-sdk-sandbox

Multi-language sandbox for experimenting with Cribl Control Plane and Cloud Management SDKs

Supported SDKs

This sandbox provides examples and development environment support for the following Cribl SDKs:

Control Plane SDKs

Management Plane SDKs

Quick Start

  1. Open in devcontainer - All dependencies are automatically set up
  2. Configure credentials - Edit .env with your Cribl credentials
  3. Run examples - Use Python, TypeScript, or Go examples

Cloud

Connect to Cribl.Cloud using OAuth2 authentication:

  • CRIBL_ORG_ID - Your organization ID
  • CRIBL_CLIENT_ID - OAuth2 client ID
  • CRIBL_CLIENT_SECRET - OAuth2 client secret
  • CRIBL_DOMAIN - Domain for Cribl Cloud (defaults to cribl.cloud)
  • CRIBL_WORKSPACE_NAME - Workspace name (defaults to main)

For detailed authentication setup, see: Cribl API Documentation

On-Premise

Connect to an on-premise Cribl Control Plane:

  • CRIBL_SERVER_URL - Server URL (e.g., http://localhost:19000, https://localhost:9000, or https://cribl.example.com:8000)
  • CRIBL_USERNAME - Username (defaults to admin)
  • CRIBL_PASSWORD - Password (defaults to admin)
  • CRIBL_INSECURE_TLS - Accept self-signed certificates for HTTPS connections (defaults to true for development convenience, set to false for 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.

Local Testing

Start a local Cribl Stream leader for testing:

./start-cribl.sh

This provides a local environment at http://localhost:19000 with default credentials admin/admin.

To stop:

./stop-cribl.sh

Examples

Run 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.go

VS Code Integration

VS Code launch configurations and tasks are provided for running and debugging examples.

Ports

  • 19000 - Cribl Stream UI
  • 4200 - Cribl leader communication port

About

Multi-language sandbox for experimenting with Cribl Control Plane and Cloud Management SDKs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published