Skip to main content

Event Specification

Event Log File

When event logging is enabled, an event log file named events.log is created in the directory specified in the configuration and performs daily rolling in the format events.log.YYYYMMDD.

Event Log File Example

{"time":"2025-03-26T05:21:46.315+00:00","level":"Info","category":"StreamEvent","type":"StreamCreated","sourceId":"#default#app/push_rtmp","summary":"Stream created. Id: 103, StreamType: Rtmp, SourceUrl: TCP://172.17.0.1:44004"}
{"time":"2025-03-26T05:21:46.316+00:00","level":"Info","category":"StreamEvent","type":"StreamPrepared","sourceId":"#default#app/push_rtmp","summary":"Stream prepared. Id: 103, StreamType: Rtmp, SourceUrl: TCP://172.17.0.1:44004","snapshot":{"createdTime":"2025-03-26T05:21:46.315+00:00","name":"push_rtmp","sourceType":"Rtmp","sourceUrl":"TCP://172.17.0.1:44004","tracks":[{"id":0,"name":"Video","type":"Video","video":{"bitrate":"2500000","bitrateAvg":"0","bitrateConf":"2500000","bitrateLatest":"128503","bypass":false,"codec":"H264","deltaFramesSinceLastKeyFrame":0,"framerate":30.0,"framerateAvg":0.0,"framerateConf":30.0,"framerateLatest":0.0,"hasBframes":false,"height":1080,"keyFrameInterval":1.0,"keyFrameIntervalAvg":1.0,"keyFrameIntervalConf":0.0,"keyFrameIntervalLatest":0.0,"width":1920}},{"audio":{"bitrate":"160000","bitrateAvg":"0","bitrateConf":"160000","bitrateLatest":"-795170153","bypass":false,"channel":2,"codec":"AAC","samplerate":48000},"id":1,"name":"Audio","type":"Audio"},{"id":2,"name":"Data","type":"Data"}]}}
{"time":"2025-03-26T05:21:46.319+00:00","level":"Info","category":"StreamEvent","type":"PushPublishingStarted","sourceId":"#default#app/push_rtmp","summary":"PushPublishing started. Id: JwW9AM, Protocol: rtmp, Url: rtmp://192.168.0.234:52935/app/pushedRtmp, StreamKey: ","snapshot":{"app":"app","createdTime":"2025-03-26T05:21:46.319+00:00","finishTime":"1970-01-01T00:00:00.000+00:00","id":"JwW9AM","isConfig":true,"protocol":"rtmp","sentBytes":0,"sentTime":0,"sequence":0,"startTime":"1970-01-01T00:00:00.000+00:00","state":"ready","stream":{"name":"push_rtmp","trackIds":[],"variantNames":["video_h264_1080p","aac_audio"]},"totalsentBytes":0,"totalsentTime":0,"url":"rtmp://192.168.0.234:52935/app/pushedRtmp","vhost":"default"}}
{"time":"2025-03-26T05:21:47.114+00:00","level":"Info","category":"StreamEvent","type":"StreamCreated","sourceId":"#default#app/pushedRtmp","summary":"Stream created. Id: 104, StreamType: Rtmp, SourceUrl: TCP://172.17.0.1:48218"}
{"time":"2025-03-26T05:21:47.129+00:00","level":"Info","category":"StreamEvent","type":"StreamPrepared","sourceId":"#default#app/pushedRtmp","summary":"Stream prepared. Id: 104, StreamType: Rtmp, SourceUrl: TCP://172.17.0.1:48218","snapshot":{"createdTime":"2025-03-26T05:21:47.114+00:00","name":"pushedRtmp","sourceType":"Rtmp","sourceUrl":"TCP://172.17.0.1:48218","tracks":[{"id":0,"name":"Video","type":"Video","video":{"bitrate":"4906000","bitrateAvg":"0","bitrateConf":"4906000","bitrateLatest":"1059802151","bypass":false,"codec":"H264","deltaFramesSinceLastKeyFrame":0,"framerate":30.0,"framerateAvg":0.0,"framerateConf":30.0,"framerateLatest":0.0,"hasBframes":false,"height":1080,"keyFrameInterval":0.0,"keyFrameIntervalAvg":0.0,"keyFrameIntervalConf":0.0,"keyFrameIntervalLatest":0.0,"width":1920}},{"audio":{"bitrate":"125000","bitrateAvg":"0","bitrateConf":"125000","bitrateLatest":"1059802151","bypass":false,"channel":2,"codec":"AAC","samplerate":48000},"id":1,"name":"Audio","type":"Audio"},{"id":2,"name":"Data","type":"Data"}]}}

Event Log JSON

Event logs record event information in JSON format, and the meaning of each field is as follows.

FieldOptionalDescription
timeNRecords the time when the event occurred in ISO 8601 format.
levelNRecords the level of the event.
categoryNRecords the major classification of the event. Major classifications are Server Events, Virtual Host Events, Application Events, Stream Events, Rest API Call Events, and Access Control Events.
typeNRecords the type of event. Event types according to event categories can be found in the Event Categories and Types section.
sourceIdNRecords the ID of the source that generated the event. Source types are Server, Virtual Host, Application, and Stream.
summaryNSummarizes the content of the event in one line.
causeYCertain events record the cause of the event occurrence.
snapshotYCertain events record detailed information at the time of occurrence in JSON format.

Event Levels

Events are classified into the following levels according to severity.

LevelDescription
TraceEvents for checking the detailed flow of functional operations.
DebugEvents for checking detailed information about functional operations and state changes.
InfoEvents that occur during general functional operations and state changes (most events).
WarningEvents that occur in error situations but do not affect functional operation.
ErrorEvents that occur during serious problems or functional malfunctions.

Event Source IDs

An ID expressed in URI format that allows you to check the origin of the source that generated the event. The format of the ID may vary depending on the type of source as follows:

Source IDDescription
Server

The OvenMediaEngine server ID is stored.

  • e.g.: 6add8be3-181f-4c4b-bc4e-xxxxxxxxxxxx

Virtual Host

The name of the virtual host is stored.

  • e.g.: default
Application

#{virtual_host_name}#{app_name} format is stored.

  • e.g.: #default#app
Stream

#{virtual_host_name}#{app_name}/{stream_name} format is stored.

  • e.g.: #default#app/stream

Event Categories and Types

Event logs are classified by category and type.

info

Event categories and types for monitoring will be continuously added.

Server Events (ServerEvent)

Event TypeDescriptionEvent LevelSnapshot
ServerStartedServer start event (server name, server version)InfoServer configuration information
InternalQueueCongestion

Internal queue congestion (queue information)

  • Supported version: 0.18.1.2+
InfoN/A

Virtual Host Events (HostEvent)

Event TypeDescriptionEvent LevelSnapshot
HostCreatedNew virtual host creation (virtual host name, distribution name)InfoVirtual host details
HostDeletedVirtual host deletion (name of deleted virtual host, distribution name)InfoN/A

Application Events (AppEvent)

Event TypeDescriptionEvent LevelSnapshot
AppCreatedNew application creation (application name)InfoApplication details
AppDeletedApplication deletion (deleted application name)InfoN/A

Stream Events (StreamEvent)

Event Type (Cause)DescriptionEvent LevelSnapshot
StreamCreatedNew stream creation (Stream ID, type, media source)InfoN/A
StreamPreparedStream preparation complete (Stream ID, type, media source)InfoStream details
StreamDeletedStream deletion (Stream ID, type, media source)InfoN/A
StreamCreationFailed (DuplicatedStreamName)Stream creation failure due to duplicated stream name (duplicated stream name)ErrorN/A
AbnormalStreamDetected (BFrameDetected)B-Frame detection (track information)WarningTrack information
AbnormalStreamDetected (AbnormalIncreasedTimestamp)Abnormal timestamp in input stream (track information)WarningTrack information

AbnormalStreamDetected

(AbnormalFpsDetected)

Abnormal framerate in input stream (track information)

  • Supported version: 0.18.1.2+
WarningTrack information

AbnormalStreamDetected

(LongKeyFrameIntervalDetected)

Keyframe intervals greater than 4 seconds in input stream (input stream framerate, track information)

  • Supported version: 0.18.1.2+
WarningTrack information
ScheduledChannelCreatedScheduled channel creation (sch file path)InfoScheduled channel information
ScheduledChannelUpdatedScheduled channel update (sch file path)InfoScheduled channel information
ScheduledChannelDeletedScheduled channel deletion (sch file path)InfoN/A
ScheduledChannelItemChangedScheduled channel item change (program, schedule, item information, Fallback status)InfoN/A

ScheduledChannelPlaybackError

(FailedToPopPacket)

Packet reception failure when playing scheduled channel live item (program, schedule, item information, Fallback status)

  • Supported version: 0.18.1.2+
WarningN/A
MultiplexChannelCreatedMultiplex channel creation (mux file path)InfoMultiplex channel information
MultiplexChannelUpdatedMultiplex channel update (mux file path)InfoMultiplex channel information
MultiplexChannelDeletedMultiplex channel deletion (mux file path)InfoN/A
RecordingStartedRecording start (recording ID, recording file path)InfoRecording information
RecordingStoppedRecording stop (recording ID, recording file path)InfoRecording information
PushPublishingStartedPush publishing start (push ID, protocol, redistribution URL)InfoPush information
PushPublishingStoppedPush publishing stop (push ID, protocol, redistribution URL)InfoPush information
HLSDumpStartedHLS dump start (dump ID, dump save path)InfoDump information
HLSDumpStoppedHLS dump stop (dump ID, dump save path)InfoDump information

REST API Events (RestApiEvent)

Event TypeDescriptionEvent LevelSnapshot
RestApiRequestedREST API request (HTTP version, method, path, remote address, RequestID)InfoRequest body
RestApiRespondedREST API response (response status code, RequestID)Info (Error in case of error)Response body

Access Control Events (AccessControlEvent)

Event TypeDescriptionEvent LevelSnapshot
VerifyingSignedPolicyFailedSigned Policy verification failure (request URL, remote address, error message)ErrorN/A
VerifyingAdmissionWebhooksFailedAdmission Webhooks verification failure (request URL, remote address, error message)ErrorResponse body, N/A