After completing this topic, you can create a Rule that automatically detects a problem in your telemetry.Documentation Index
Fetch the complete documentation index at: https://docs.siftstack.com/llms.txt
Use this file to discover all available pages before exploring further.
New to Detect and Review? Read the Overview to understand how Rules, Reports, Annotations, and Campaigns work together before proceeding.
When to use this workflow
Use this workflow when you want Sift to flag a specific condition in your telemetry data every time a Run is evaluated. For example, flagging when a channel exceeds a threshold, drops below a minimum, or a log message contains a known error string. Rules are reusable. Once created, a Rule can be applied to any Run and included in Report Templates so your team does not need to reconfigure detection logic from scratch.Before you begin
- You have at least one Asset and at least one Channel ingested into Sift. See Channels and Assets.
- Optional: You have an existing Run to use for previewing the Rule before saving it.
Complete the workflow
This walkthrough uses a concrete example: flagging when a channel calledmotor_temp exceeds 120 degrees.
Step 1: Create a new Rule
- In Sift, the Rules tab.
- Click New Rule.
- In Rule name, enter a name. For example,
Motor temp over threshold. - Optional: In Rule description, enter a description.
- In Asset name, enter or select the Asset that contains the channel you want to monitor.
- Optional: In Asset tag name, enter a tag name to apply this Rule to all Assets with that tag rather than a single Asset.
Step 2: Select input channels
In the Input Channels list, select the channel(s) your Rule expression will reference. For this example, selectmotor_temp.
Sift assigns each selected Channel a shorthand variable in selection order: the first Channel becomes $1, the second $2, and so on. You use these variables in the expression in the next step.
You can select both raw telemetry channels and Calculated Channels.
Step 3: Write the expression
In the Expression box, enter a CEL expression that evaluates totrue when the condition you want to flag is met. Reference input Channels using their assigned shorthand variables.
For this example, motor_temp was selected first, so it is $1:
true during a Run, Sift creates an Annotation at that point in time.
Keep the expression focused on a single logical condition.
Expression resources:
- For syntax help, operators, and Sift’s built-in functions, see Expression syntax.
- For reusable logic shared across Rules, see User-Defined Functions.
Step 4: Preview the Rule against a Run
Before saving, preview the Rule against existing telemetry to confirm it behaves as expected.- In Rule preview, click Select Run.
- In the Runs table, select one or more Runs that contain the channel you are monitoring.
- Click Preview N Runs. Sift evaluates the expression against the selected Runs and shows the Annotations that would be generated, without saving them.
- Review the output to confirm the expression fires when and only when you expect it to.
Step 5: Decide between Internal and External mode
Before publishing, decide whether this Rule should be Internal or External:- Internal Rules are visible in the Rules tab, can be edited and versioned over time, and are the right choice for ongoing telemetry monitoring.
- External Rules are created via the API for ad hoc or CI/CD use, are not visible in the UI, and cannot be edited after creation.
Step 6: Save and publish the Rule
- Click Save.
- Optional: In Version notes, enter a note describing this version.
- Click Publish.
Verify the result
After publishing:- The Rule appears in the Rules tab with the Asset and Channels you configured.
- You can click the Rule to view its expression, version history, and preview output.
- The Rule is now available to select when generating a Report or building a Report Template.
Next steps
- To apply this Rule without manually selecting it each time, add it to a Report Template. See Set up a repeatable review checklist.
- To review a Run using this Rule now, see Detect and review issues in a Run.
- To manage Rule versions or promote an older version to current, see the version history section on the Rule’s detail page.