These docs are for Cribl Stream 4.8 and are no longer actively maintained.
See the latest version (4.20).
Sampling
The Sampling Function filters out events, based on an expression and a sampling rate.
Each Worker Process executes this Function independently on its share of events. For details, see Functions and Shared-Nothing Architecture.
Usage
Filter: Filter expression (JS) that selects data to feed through the Function. Defaults to true, meaning it evaluates all events.
Description: Simple description of this Function. Defaults to empty.
Final: If toggled to Yes, stops feeding data to the downstream Functions. Defaults to No.
Sampling rules: Events matching these rules will be sampled at the rates you specify:
Filter: Filter expression matching events to be sampled. Use
trueto match all.