1. Home
  2. Knowledge Base
  3. How to fetch the Device Event Analytics on MacOS, Windows, and Linux Devices

How to fetch the Device Event Analytics on MacOS, Windows, and Linux Devices

Monitoring and analyzing Device Event Analytics is crucial for tracking user activity and system performance across different operating systems. Events such as login, logout, reboot, and shutdown provide valuable insights into device usage, security, and troubleshooting.

This article outlines the methods to fetch and analyze Device Event Logs on macOS, Windows, and Linux systems.

Purpose

The purpose of this article is to provide a detailed guide on fetching the Device Event Analytics reports on MacOS, Linux, and Windows devices.

Prerequisites

Make sure on the respective devices the below supported SureMDM Agent versions are installed.

  • Windows: v4.84.0 or later
  • macOS: v5.2.0 or later
  • Linux: v5.0.1 or later

Step 1: Enabling Data Analytics and Device event Analytics

1.Login to the SureMDM Console.

2.Navigate to the Account settings, and click on Data Analytics.

3.Scroll down and turn on the Device Event Analytics option.

4.Navigate to the Secret Key row, click on Show, copy the Secret key, and click on Apply.

5.Upon clicking ‘Apply’, a prompt will appear on the console requesting confirmation to enable Device Event Analytics

Select No, if you do not want to enable it for All the devices.
Select Yes, if you want to enable it for all the devices.

Note:
If you select Yes, you do not need to create a Data analytics policy Job for MacOS and Runscript Jobs for Windows and Linux devices. The Job will be created automatically and will be deployed on all devices over the console respectively skip step 2 and directly follow step 3.

Note:
If you have selected No, and do not wish to deploy it on All the devices, then follow the below steps 2 and 3 accordingly.

Step 2: Lets see how to create jobs for macOS, Windows and Linux.

Creating the Data Analytics Policy job on MacOS:

1.Navigate to the Jobs section and select New Job.

2.Choose the MacOS Operating System and select the Data Analytics Policy job.

3.Enter the Job Name and from the Analytics Type drop-down menu select Device Event Analytics.

4.Enable the option Enable Data Analytics and Paste the Secret Key which was copied earlier.

5.Save the Job and deploy it onto the selected macOS devices from which you want to fetch the Device Event Analytics Report.

Creating the Data Analytics Policy job on Windows:

1.Navigate to the Jobs section and select New Job.

2.Choose the Windows Operating System and select the Run Script job.

3.Enter the Job Name and enter the below Runscript 

4.Enter the secret key which was copied earlier and paste it into the field where it says SecretKey.

!#suremdm EnableLoginAnalytics {SecretKey}

Example: !#suremdm EnableLoginAnalytics {0TeStKrY91}

5.Save the Job and deploy it onto the selected Windows Devices.

Creating the Data Analytics Policy job on Linux:

1.Navigate to the Jobs section and select New Job.

2.Choose the Linux Operating System and select the Run Script job.

3.Enter the Job Name and enter the below Runscript.

4.Enter the secret key which was copied earlier and paste it into the field where it says SecretKey.

!#suremdm EnableEventAnalytics {SecrectKey}

5.Save the Job and deploy it onto the selected Linux Devices.

Step 3: Generating the Device Event Analytics Report.

1.Navigate to the Reports section, and under On Demand Reports select Device Event Analytics Report.

2.Select the Desired Date and Time, Group, or Device and click on Request Report.

Note:
The information will be fetched from the time the Data Analytics Policy job was deployed successfully onto the devices.

If you have any questions or need help with our products, please don’t hesitate to contact our support team.

CONTACT US

Was this helpful?
YesNo
Updated on April 2025
Need Support?
Can't find the answer you're looking for?
Contact Support