Skip to main content

Attribute Filter Configuration

Overview

Attribute filtering is the core feature for precisely controlling query results. By setting attribute conditions, you can filter CI instances that meet specific business requirements, making query results more precise and valuable.

What this feature can do for you:

  • Precisely filter CI instances meeting specific conditions
  • Combine multiple conditions to implement complex query logic
  • Support rich operators for multiple data types

Main Features

  • Visual Filter Condition Builder: No code writing needed
  • Rich Operators: Supports specialized operators for different data types
  • Logical Combinations: Supports AND/OR/NOT logical combination conditions
  • Condition Groups: Supports multi-level condition nesting

Attribute Filter Interface

Below is the editing interface for CI attribute filter conditions:

Attribute Filter Tab

Operator Reference

Different data types support different operators. Below is the complete operator list categorized by data type:

Text Type Operators

String

Available OperatorsDescriptionUse Case
EqualsExact string matchFind records where attribute value equals a specific string
Not EqualsExclude a specific string valueExclude records where attribute value equals a specific string
Starts WithString starts with specified contentFind records where attribute value starts with a specified prefix
Ends WithString ends with specified contentFind records where attribute value ends with a specified suffix
Is EmptyField value is empty or doesn't existFind records where attribute is empty
Contains (Ignore Case)Contains, ignoring caseFind records where attribute value contains a specified string (case insensitive)
InString value is in the specified list (comma separated)Find records where attribute value matches one or more specified strings
Not InString value is not in the specified list (comma separated)Exclude records where attribute value matches all specified strings

Email

Same as String type

URL

Same as String type

IP Address

Same as String type

Key-Value List

Key-value list types require selecting a key first, then filtering based on the value for that key. Operators check whether any key-value pair in the list meets the condition.

Available OperatorsDescriptionUse Case
EqualsKey exists in list and value exactly matchesFind records where the "Environment" key in tags attribute equals "Production"
Not EqualsKey exists in list and value does not equalFind CIs where the "Environment" key in tags attribute does not equal "Testing"
Starts WithKey exists in list and value starts with specified contentFind records where the "Environment" key in tags starts with prefix "Development"
Ends WithKey exists in list and value ends with specified contentFind records where the "Environment" key in tags ends with suffix "Testing"
Is EmptyKey exists in list and value is empty or doesn't existFind records where the value is empty
Contains (Ignore Case)Key exists in list and value contains, ignoring caseFind records where the "Environment" key value contains "Testing"
InKey exists in list and value is in the specified list (comma separated)Find records where the "Environment" key value matches "Production", "Development", or "Testing"
Not InKey exists in list and value is not in the specified list (comma separated)Exclude records where the "Environment" key value matches "Production", "Development", or "Testing"

Usage Example:

  • Select a key-value list type attribute like tags, enter key: Environment → Operator: Equals → Value: Production
  • Meaning: Find CIs where the environment tag is "Production"

Numeric Type Operators

Integer

Available OperatorsDescriptionUse Case
EqualsExact numeric matchFind records where attribute value equals a specific number
Not EqualsExclude a specific numberExclude records where attribute value equals a specific number
Greater ThanValue is greater than specifiedFind records where attribute value exceeds a threshold
Greater Than or EqualValue is greater than or equal to specifiedFind records where attribute value meets or exceeds a threshold
Less ThanValue is less than specifiedFind records where attribute value is below a threshold
Less Than or EqualValue is less than or equal to specifiedFind records where attribute value does not exceed a threshold
Is EmptyField value is empty or doesn't existFind records where attribute is empty
InValue is in the specified list (comma separated)Find records where attribute value matches one of multiple numbers
Not InValue is not in the specified list (comma separated)Exclude records where attribute value matches one of multiple numbers

Long Integer

Same as Integer

Float

Same as Integer

Double

Same as Integer

Datetime Type Operators

Datetime

Available OperatorsDescriptionUse Case
EqualsExact date matchFind records for a specific date
Not EqualsExclude a specific dateExclude records for a specific date
Greater ThanDate is after specified dateFind records after a specified date
Greater Than or EqualDate is on or after specified dateFind records on or after a specified date
Less ThanDate is before specified dateFind records before a specified date
Less Than or EqualDate is on or before specified dateFind records on or before a specified date
BetweenDate is between two datesFind records within a date range
Is EmptyDate field is emptyFind records with no date filled

Boolean and Option Type Operators

Boolean

Available OperatorsDescriptionUse Case
Is TrueBoolean value is trueFind records where attribute value is true
Is FalseBoolean value is falseFind records where attribute value is false
Is EmptyBoolean field is emptyFind records where attribute is empty

Option (Enum)

Available OperatorsDescriptionUse Case
EqualsOption value exact matchFind records where attribute is a specific option value
Not EqualsExclude a specific option valueExclude records where attribute is a specific option value
InValue is in the specified list (comma separated)Find records where attribute value is one of multiple option values
Not InValue is not in the specified list (comma separated)Exclude records where attribute value is one of multiple option values
Is EmptyOption field is emptyFind records with no option selected

CI ID Type Operators

CI ID

CI ID types are used to reference other CIs, establishing associations between CIs.

Available OperatorsDescriptionUse Case
EqualsReferenced CI ID exact matchFind records matching a specific CI ID
Not EqualsReferenced CI ID does not equalExclude records matching a specific CI ID
InReferenced CI ID is in the specified list (comma separated)Find records matching multiple specified CI IDs
Not InReferenced CI ID is not in the specified list (comma separated)Exclude records matching specified CI IDs

How to Use

Adding a Single Condition

  1. Click the + icon button to Add new filter condition
  2. Select the attribute field to filter
  3. Select an operator
  4. Enter or select a comparison value
  5. The condition is automatically added to the condition list

Combining Multiple Conditions

You can combine multiple conditions using logical operators:

Logical OperatorDescriptionUse Case
ANDAll conditions must be satisfiedNeed to satisfy multiple filter conditions simultaneously
ORAt least one condition must be satisfiedNeed to satisfy any one filter condition
NOTNegate the conditionExclude records meeting specific conditions

Condition Groups

For complex queries, you can create condition groups:

  1. Select multiple conditions
  2. Click the icon button to Add new subgroup
  3. Select the group's logical operator (AND/OR)
  4. You can nest more groups within a group

Example: Find CIs where "(status is running AND region is East) OR (status is pending maintenance AND priority is high)"

Data Type Summary

The above operator descriptions cover all data types supported in CMDB. For the complete data type list, see: Attribute Types