How can I restart all stream targets automatically when Wowza Streaming Engine has an error?

Hi everyone,

I need help setting up an automatic way to restart all of my stream targets whenever there is an error in Wowza Streaming Engine.

Wowza is running on a Linux server, and I would like to write a Python script to handle this, but I am not sure where to start. I need guidance on:

  1. How to find and use the Wowza Streaming Engine API for stream targets.
  2. What API endpoint should be used to restart stream targets.
  3. How to write a Python script that detects an error and restarts all stream targets.
  4. How to set this up on Linux so the script can run automatically.
  5. Whether this should be triggered through Wowza logs, a cron job, or another method.

Any example Python script or setup steps would be appreciated.

Hi

Thanks for reaching out to the community!

Before we get into the scripting side of things, we’d like to understand what’s actually causing the stream targets to go down in the first place. Building an auto-restart script without knowing the root cause would only mask the underlying issue rather than resolve it.

To help us investigate, could you please open a support ticket at https://www.wowza.com/support/open-ticket and share the following details:

  • Wowza Streaming Engine version
  • Type of stream targets in use (RTMP push, Wowza CDN, third-party CDN, etc.)
  • Whether the source stream is still active when the targets drop
  • Relevant error logs from [wowza-install-dir]/logs and configuration from [wowza-install-dir]/conf

Our team will take a closer look and advise on the best path forward.

Looking forward to hearing back from you!

Vijay Sarathy