Reading Logs From Victoria Logs

Hello,

Following the recent changes to Milestone Logs, where the log service has been replaced by VictoriaLogs and is no longer installed, is there an alternative way to retrieve these logs? After testing the approach documented in the SDK, I found that it no longer works.

Could you please advise on the recommended way to access these logs?

private void fillGrid(string group)
{
VideoOS.Platform.Log.LogClient.Instance.ReadLog(VideoOS.Platform.EnvironmentManager.Instance.MasterSite.ServerId, 1, out _result, out _names, group);
var colNum = new DataGridViewTextBoxColumn { HeaderText = “Number” };
dGridViewLog.Columns.Add(colNum);

 foreach (string name in \_names)
 {
     var col = new DataGridViewTextBoxColumn { HeaderText = name, Width = 150 };
     dGridViewLog.Columns.Add(col);
 }

 foreach (System.Collections.ArrayList arrayList in \_result)
 {
     DataGridViewRow row = (DataGridViewRow)dGridViewLog.RowTemplate.Clone();
     row.CreateCells(dGridViewLog, arrayList.ToArray());
     dGridViewLog.Rows.Add(row);
 }

}

Thanks for your patience. Here is an update.

Starting with XProtect 2026 R1, server logging changed. XProtect components now send log entries using OpenTelemetry (OTLP) to an OpenTelemetry Collector on the Management Server. By default the Collector forwards them to VictoriaLogs, which replaces the SQL Server-based Log Server used in earlier versions.

Because the legacy Log Server is no longer part of the system, the MIP SDK LogClient.ReadLog approach no longer has a log database to read from. There is currently no MIP SDK API for reading logs from the new backend.

Your options are:

  • View logs interactively on the Server Logs page in XProtect Management Client.
  • Read logs programmatically through the interface of the log backend you use. That is either the bundled VictoriaLogs, or another OTLP-compatible logging or monitoring tool of your choice that the Collector can forward logs to.