Triggers
Triggers are a log line analysis mechanism in Senta Streamer that allows automatic execution of actions when specific conditions are detected.
The main purpose of triggers is to monitor stream status and automatically restart streams when problems are detected.
The system supports two types of triggers:
- Static
- Dynamic (custom)
Static Triggers
Section titled “Static Triggers”Static triggers are built into the system. Currently, one static trigger is available — the bitrate analysis trigger.
Static Bitrate Trigger
Section titled “Static Bitrate Trigger”- Has a fixed ID = 1
- Pre-installed in the system
- Cannot be deleted
- Can be assigned and unassigned from channels
How It Works
Section titled “How It Works”The trigger analyzes log lines containing bitrate information.
If the logs show a repeated identical pair:
time — bitratethis indicates a stream freeze (bitrate does not change over time).
In such cases, the trigger automatically performs a stream restart.
How to Assign a Static Trigger
Section titled “How to Assign a Static Trigger”- Go to Main Menu → Triggers
- Select the Bitrate trigger
- Check the boxes for the desired channels in the channel list
- Save changes
After this, the selected channels will be automatically monitored for bitrate.
Dynamic (Custom) Triggers
Section titled “Dynamic (Custom) Triggers”Dynamic triggers allow you to create your own log analysis rules.
The system can:
- search for substring occurrences in log lines
- check log lines against regular expressions
When a condition matches, a specified action is executed (e.g., stream restart).
Creating a Custom Trigger
Section titled “Creating a Custom Trigger”To create a new trigger:
- Go to Main Menu → Triggers
- Click Create New Trigger
- Specify:
- Trigger name
- Search text
- If necessary, enable the Regular Expression option
- Save the trigger
- Select the list of streams to which this trigger should be applied
After saving, the trigger will start analyzing logs of the selected streams.