Skip to content

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 are built into the system. Currently, one static trigger is available — the bitrate analysis trigger.

  • Has a fixed ID = 1
  • Pre-installed in the system
  • Cannot be deleted
  • Can be assigned and unassigned from channels

The trigger analyzes log lines containing bitrate information.

If the logs show a repeated identical pair:

time — bitrate

this indicates a stream freeze (bitrate does not change over time).

In such cases, the trigger automatically performs a stream restart.

  1. Go to Main Menu → Triggers
  2. Select the Bitrate trigger
  3. Check the boxes for the desired channels in the channel list
  4. Save changes

After this, the selected channels will be automatically monitored for bitrate.


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).


To create a new trigger:

  1. Go to Main Menu → Triggers
  2. Click Create New Trigger
  3. Specify:
    • Trigger name
    • Search text
  4. If necessary, enable the Regular Expression option
  5. Save the trigger
  6. Select the list of streams to which this trigger should be applied

After saving, the trigger will start analyzing logs of the selected streams.