AppliesTo Function Scripting Overview
Last updated on 22 May, 2025AppliesTo scripting is a method for selecting LogicMonitor resources based on their properties. These properties may be assigned automatically using basic system information discovery or PropertySource execution, inherited from the parent resource or resource group, or they may be assigned manually. For more information, see Resource and Instance Properties.
AppliesTo scripting evaluates each monitored resource and returns those that meet the specified conditions. You can use AppliesTo scripting throughout LogicMonitor to do the following:
- Associating LogicModules with resources—When entered into a LogicModule definition, an AppliesTo scripting expression determines which resources a LogicModule applies to.
For more information, see Applying DataSources to Resources. - Dynamically grouping resources—AppliesTo scripting expressions are used to dynamically organize resources into groups.
For more information, see Resource Groups Overview. - Applying custom resource dashboard templates to resources—AppliesTo scripting is used to display custom resource dashboards for subsets of resources.
For more information, see Graphs Tab. - Returning resource counts for inclusion on dashboards—Various dashboard widgets including the Pie Chart widget and Big Number widget can be customized to return resource counts based on the results of an AppliesTo scripting query.
For more information, Pie Chart Widget and Big Number Widget. - Creating custom AppliesTo functions—AppliesTo scripting can be used to create custom AppliesTo functions for reuse across your platform.
For more information, see AppliesTo Function Configuration.
For more information about the syntax you can use for AppliesTo scripting, see AppliesTo Function Scripting Syntax Reference.