Skip to content

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

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 and .env file 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)

For detailed authentication setup, see: Cribl API Documentation

On-Premise

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/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