How can we trigger event analytics via xml

  1. I am using ubuntu machine and have to transfer the alert data from ubuntu to Windows, you have any idea on that?
  2. Do we need to append alerts to the same XML or rewrite the file every time new alerts comes up?

Please have a look at the Analytics Event Trigger via XML sample.

While the sample is written in C#, you can translate the methods to your programming language..

https://doc.developer.milestonesys.com/html/index.html?base=samples/analyticseventxml.html&tree=tree_3.html

Do I need to convert that entire C# code to python or only particular piece of code from that (i am using python to send the alerts)?

Maybe you can just extract the portion of the code that does the actual sending.

Implementing or generating the XML needs to be adjusted anyways so here the best the sample can give you is an understanding..

Recommended read on the content of the XML.. https://doc.developer.milestonesys.com/html/index.html?base=reference/protocols/analytics_and_mad_events.html&tree=tree_3.html

Any idea of how can we transfer the alert data from ubuntu to Windows?

It is network communication. What I outlined as a reply is that there is no cause for you to move any executing code from ubunto to Windows, your ubunto device can send the analytics on the network to the XProtect Event Server. I might have been unclear, I hope you see how it works with your device simply communicating on the network..

The link provided to check the C# code for Analytics Event Trigger via XML sample seems to be in xml format. I am unable to see sample C# code. https://doc.developer.milestonesys.com/html/index.html?base=samples/analyticseventxml.html&tree=tree_3.html

Could you please help.

You need to download and install the MIP SDK, then you find the sample at [C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ProtocolSamples\TriggerAnalyticsEventXML

If you cannot run the installers (on non-Windows) I think you can uncompress the installer file and find the folders and files.

https://developer.milestonesys.com/s/article/About-Milestone-software-development-Kit-SDK-download-link-For-MSP

  1. There are many c# scripts there, all has to be translated or any specific script?
  2. Is there any that support team will help us to translate C# code in python?

The sample is TriggerAnalyticsEventXML. If anybody has a version that has been migrated to python I hope we can share it here. Milestone support will not be making a python version of the sample.