Prework in Webroot
Log in to your Webroot SecureAnywhere Instance. Navigate to the **Groups tab** and select the target site for which there are devices you want to exclude.
Select the **plus icon**in the top left to create a new group under **“Sites & Groups.”** Complete the Name, Description, and Endpoint Policy for this group.
Once the Group is created, navigate back to the **Site.** Select the devices you would like to add to the exclusion group and select the **Move** option.
Move the devices to the newly created exclusion group. Record the name of the group to access when you return to Liongard.
Liongard
1. Log in to Liongard. Navigate to Admin > Metrics
2. Clone an existing Metric OR select the Add Metric button
3. Edit the Metric settings
4. Navigate to the Data Print Query Groups are found in the Endpoints array. When writing your query, you must target the Endpoints array.
Within the query, add the following JMESPath condition, and Within the backticks, edit the name of the exclusion group to match what you named the group in Webroot.
(&& GroupName!= 'LG_Exclusions')
For example, let's edit the “Webroot: Devices Not Checked in Within 30 Days List” Metric to exclude the LG_Exclustions groups.
Original Metric Query:
Endpoints[?DaysSinceLastSeen > 30 && Deactivated == false].HostName | join( | , @)
Metric Query with Exclusion Group:
Endpoints[?DaysSinceLastSeen > `30` && Deactivated == `false` && GroupName!= 'LG_Exclusions'].HostName | join( `|` , @)
We added the exclusion group JMESPath condition which tells the query to ignore all endpoints that are included in the LG_Exclusions group.
5. Save this Metric.