Skip to main content

Cribl Stream

@twonines/cribl-streamv2026.08.27.5· 14d agoMODELSWORKFLOWSREPORTS
01README

Read-only integration for troubleshooting Cribl Stream Cloud deployments via the REST API -- sources, routes, pipelines, destinations, event capture, lookups, knowledge objects, worker-group logs/notifications, and the public status page.

A fork of @figura/cribl-stream with more methods -- this is the place to improve on it.

Authentication

Requires a Cribl Cloud API Client ID and Client Secret, stored in a swamp vault. Generate credentials in Cribl Cloud under Settings → API Credentials. (check_status_page and list_status_page_incidents are unauthenticated calls to Cribl's public status.cribl.cloud instead.)

Methods

Configuration

What's deployed in a worker group, and how it's wired together.

  • list_sources — List all input sources in a worker group
  • get_source — Get detailed config for a specific source
  • list_routes — List routes with filter, pipeline, output mappings
  • list_pipelines — List all pipelines in a worker group
  • get_pipeline — Get pipeline config with all functions
  • list_destinations — List output destinations with status
  • get_destination — Get detailed config for a destination
  • list_lookups — List lookup files in a worker group
  • list_knowledge — List knowledge objects (parsers, vars, schemas)

Live data

Events flowing through the pipeline right now.

  • capture_events — Capture/preview live events at a pipeline point

Health, logs & alerting

What config alone won't tell you -- actual runtime state.

  • health — Fan-out health check across all components
  • list_notifications — Cribl's own raised/resolved alert feed for a worker group
  • list_log_files — List available log files for a worker group instance
  • get_log_lines — Read parsed log events from one log file, with an optional filter expression

Cribl status page

Unauthenticated calls to status.cribl.cloud.

  • check_status_page — Check Cribl's public status page for ongoing incidents/maintenances
  • list_status_page_incidents — List Cribl's historical status-page incidents

Per-node status (bypassing leader aggregation)

list_sources/get_source/health read a leader-aggregated view of a worker group. On Cribl Cloud that aggregated view has been observed to report numRequests: 0 for a source that is, per-node, actively processing tens of thousands of events -- these three read one worker node directly instead.

  • list_workers — List worker nodes org-wide (id, health, worker group, hostname)
  • get_node_input_status — One worker node's own live status/metrics for one input
  • get_node_output_status — One worker node's own live status/metrics for one output

Usage

# List all sources in the "default" worker group
swamp model method run cribl-stream list_sources --set workerGroup=default

# Get detailed config for a specific pipeline
swamp model method run cribl-stream get_pipeline --set workerGroup=default --set pipelineId=my-syslog-pipeline

# Capture 5 live events from a source
swamp model method run cribl-stream capture_events --set workerGroup=default --set sourceId=syslog-in --set maxEvents=5

# Run a health check across the worker group
swamp model method run cribl-stream health --set workerGroup=default

# Search cribl.log for anything mentioning a destination, past the live tail
swamp model method run cribl-stream get_log_lines \
  --set workerGroup=default \
  --set fileId='__instance__:cribl.log' \
  --set filter="_raw.includes('my-destination')"

# Check whether Cribl itself has an ongoing incident
swamp model method run cribl-stream check_status_page

# Find a worker group's node ids, then read one node's real traffic directly
swamp model method run cribl-stream list_workers
swamp model method run cribl-stream get_node_input_status \
  --set nodeId=<node-id-from-list_workers> --set sourceId=open_telemetry
02Models1
@twonines/cribl-streamv2026.08.27.3cribl_stream.ts

Global Arguments

ArgumentTypeDescription
clientIdstringCribl API Client ID
fn list_sources(workerGroup: string)
List all input sources in a worker group with their type and enabled/disabled status.
ArgumentTypeDescription
workerGroupstringWorker group name (e.g. default, acceptance)
fn get_source(workerGroup: string, sourceId: string)
Get detailed configuration for a specific source by ID.
ArgumentTypeDescription
workerGroupstringWorker group name
sourceIdstringSource ID
fn list_routes(workerGroup: string)
List all routes in a worker group with their filter, pipeline, output, and enabled/disabled state.
ArgumentTypeDescription
workerGroupstringWorker group name
fn list_pipelines(workerGroup: string)
List all pipelines in a worker group.
ArgumentTypeDescription
workerGroupstringWorker group name
fn get_pipeline(workerGroup: string, pipelineId: string)
Get detailed configuration for a specific pipeline, including all functions.
ArgumentTypeDescription
workerGroupstringWorker group name
pipelineIdstringPipeline ID
fn list_destinations(workerGroup: string)
List all output destinations in a worker group with their type and status.
ArgumentTypeDescription
workerGroupstringWorker group name
fn get_destination(workerGroup: string, destinationId: string)
Get detailed configuration for a specific destination by ID.
ArgumentTypeDescription
workerGroupstringWorker group name
destinationIdstringDestination ID
fn capture_events(workerGroup: string, sourceId?: string, pipelineId?: string, filter?: string, maxEvents: number)
Capture/preview live events at a specific point in the pipeline.
ArgumentTypeDescription
workerGroupstringWorker group name
sourceId?stringSource ID to capture from (optional if pipelineId given)
pipelineId?stringPipeline ID to capture from (optional if sourceId given)
filter?stringOptional filter expression to narrow captured events
maxEventsnumberMaximum number of events to capture (default: 10)
fn list_lookups(workerGroup: string)
List all lookup files available in a worker group.
ArgumentTypeDescription
workerGroupstringWorker group name
fn list_knowledge(workerGroup: string)
List knowledge objects (parsers, global variables, schemas) in a worker group.
ArgumentTypeDescription
workerGroupstringWorker group name
fn health(workerGroup: string)
Fan-out health check: scans all sources, routes, pipelines, and destinations
ArgumentTypeDescription
workerGroupstringWorker group name
fn list_notifications(workerGroup: string)
List Cribl's own raised/resolved notifications for a worker group -- its native
ArgumentTypeDescription
workerGroupstringWorker group name
fn list_log_files(workerGroup: string)
List available log files for a worker group's instance (access.log, audit.log,
ArgumentTypeDescription
workerGroupstringWorker group name
fn get_log_lines(workerGroup: string, fileId: string, filter?: string)
Read parsed JSON log events from one worker-group log file (see list_log_files for
ArgumentTypeDescription
workerGroupstringWorker group name
fileIdstringLog file id from list_log_files, e.g. '__instance__:cribl.log'
filter?stringJS boolean expression evaluated per event, e.g. \
fn check_status_page()
Check Cribl's public status page (status.cribl.cloud) for the overall system
fn list_status_page_incidents(page: number)
List Cribl's historical status-page incidents (resolved and unresolved), most
ArgumentTypeDescription
pagenumberPage number for the statuspage.io incidents.json endpoint
fn list_workers()
List worker nodes across the organization (id, health status, worker group,
fn get_node_input_status(nodeId: string, sourceId: string)
Get one worker node's own live status/metrics for one input, bypassing the
ArgumentTypeDescription
nodeIdstringWorker node id (from list_workers)
sourceIdstringSource/input id
fn get_node_output_status(nodeId: string, destinationId: string)
Get one worker node's own live status/metrics for one output, bypassing the
ArgumentTypeDescription
nodeIdstringWorker node id (from list_workers)
destinationIdstringDestination/output id

Resources

sources(15m)— Input sources configured in a worker group
source_detail(15m)— Detailed config for a specific source
routes(15m)— Routes configured in a worker group
pipelines(15m)— Pipelines configured in a worker group
pipeline_detail(15m)— Detailed config for a specific pipeline with functions
destinations(15m)— Output destinations configured in a worker group
destination_detail(15m)— Detailed config for a specific destination
capture(30m)— Captured events from a pipeline point
lookups(15m)— Lookup files in a worker group
knowledge(15m)— Knowledge objects (parsers, schemas, global variables)
health(5m)— Aggregated health overview of a worker group
notifications(15m)— Cribl's own raised/resolved alerts for a worker group (unhealthy destination,
log_files(15m)— Available log files for a worker group instance (access.log, cribl.log, ...)
log_lines(15m)— Parsed JSON log events read from one worker-group log file
status_page(5m)— Cribl's public status page (status.cribl.cloud) summary
status_page_incidents(15m)— One page of Cribl's historical status-page incidents (resolved + unresolved)
workers(15m)— Worker nodes across the organization, with their id, health status, and worker
node_input_status(2m)— A single worker node's live status/metrics for one input, straight from that
node_output_status(2m)— A single worker node's live status/metrics for one output, straight from that
03Workflows1
@twonines/cribl-health-digest8e9cd49a-78ea-4c7e-8db1-a081f3af0749

Fans out health/notifications/log checks across Cribl Stream worker groups plus a status.cribl.cloud check, then correlates the results into one report -- flagging cases where Cribl's own health/alerting stayed quiet despite a real runtime problem visible only in cribl.log.

mainFan out health, notifications, and log checks per worker group, plus one status-page check
1.health-${{ self.wg }}cribl-stream.health— Config-level fan-out health check for this worker group
2.notifications-${{ self.wg }}cribl-stream.list_notifications— Cribl's own raised/resolved alert feed for this worker group
3.log-scan-${{ self.wg }}cribl-stream.get_log_lines— Search cribl.log for runtime errors config/health can't see
4.status-pagecribl-stream.check_status_page— Check status.cribl.cloud for any current/historical incident to correlate against
04Reports1
@twonines/cribl-health-digestworkflow
cribl_health_digest.ts

Correlates the cribl-health-digest workflow's per-worker-group health/notifications/log-scan

criblobservabilitytroubleshooting
05Previous Versions4
2026.08.27.4
2026.08.27.3

Added 1 workflows. Added 1 reports

2026.08.27.2
2026.08.27.1
06Stats
A
100 / 100
Downloads
0
Archive size
27.2 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
07Platforms
08Labels