How to get audit logs from milestone server?

I am developing a plugin and I want to get list audit logs, but when I use methods like ReadLog or ReadGroups I am not getting any data. Please respond back as soon as possible.

Do you see audit logs in the Management Client?

If not you might not have enabled the feature. In Management Client - Tools - Options - Server Logs, make sure it is enabled.

If you have the logs in the Management Client I would like you to try with the sample mentioned in this thread - https://developer.milestonesys.com/s/question/0D50O00003Hibz4SAB/how-to-get-all-contents-of-log

I have checked this sample already, I am developing a plugin for management application for XProtect professional. And to follow the steps to enable the feature as mentioned above, there is no option named tools in management application.

Please help me out as soon as possible.

The mentioned sample will not work on XProtect Professional. XProtect Professional does not have a log server.

(I had jumped to a conclusion you had an XProtect of c-code type server, I should not have assumed this without asking.)

In XProtect Professional, the logging mechanism is very different.

You enable it in the Management Application - in the left hand pane under Advanced Configuration find the Logs node, enable Audit and make a note of the path.

Under this path you will find the audit logs in files named like this is_auditYYYYMMDD.log (example is_audit20171106.log).

The content should be self-explaining. You can from your plugin read these files. Reading of these files is not shown in any sample, the MIP SDK does not contain functionality to work with these files.

Thanks for the answer and quick reply.

Currently I am working in XProtect Corporate, can I use the sample mentioned in that thread via a plugin?

VideoOS.Platform.Log.LogClient.ReadLog is only implemented in the standalone environment and will not work in a plugin.

Thinking whether this is a good idea for a future enhancement I have some questions.. Where should the plugin run (Smart Client / Management Client / Event Server)? How would you use it? Please try to outline the use case scenario.

We want it to run under management client.
Our requirement is to trace the activities based on the log entries.
By having access to log entries we can have a knowledge of which user accessed which camera at what time, and we can use that time to view the recording of that particular camera to see what he viewed.

The intent behind the Milestone design that Smart Client is for operating the system and Management Client is for configuring the system only. Because of this viewing video in the Management Client is very limited, I believe you cannot view video in the Management Client in playback, you can only view video in live mode.

I wish I could say your idea was possible to implement in the Smart Client, but VideoOS.Platform.Log.LogClient.ReadLog is not available in the Smart Client either.

If you want to implement your idea you can do so in standalone.

I will mention your idea for Milestone Product Management so they can evaluate the idea for future enhancement development work.

Thank you for the response. I appreciate your answer.