Search constraints
A search constraint is a event data search feature that enables you to enter search criteria values to apply to fields defined for event tables and constrain the data displayed to your specific needs.
Each database table has its own search page where you can enter search constraint values to apply to fields defined for the table. Depending on the type of field, special syntax may be used to specify criteria such as wildcard characters or a range of numeric values.
Search results appear on workflow pages displaying each table field in columnar layout. Some database tables can additionally
be searched using fields that are not displayed as columns on workflow pages. To determine whether such a constraint applies
to your search results when viewing the results on a workflow page, click Expand Arrow (
) to view the active search constraints.
Best practice for general search constraints
When searching for events, consider these general guidelines:
-
Many fields require wildcards for partial-match searches. All fields accept wildcards for these searches. For more information, refer to Wildcards and symbols in searches.
-
All fields accept negation (
!). -
All fields accept comma-separated lists of search values. Records that contain any of the listed values in the specified field match that search criteria.
-
All fields accept comma-separated lists enclosed in quotation marks as search values.
-
For fields that may contain only a single value, records with the specified field containing the exact string specified within the quotation marks match the search criteria. For instance, a search for
A, B, "C, D, E"will match records where the specified field contains"A"or"B"or"C, D, E". This permits matching on fields that include the comma in possible values. -
For fields that may contain multiple values at the same time, records with the specified fields containing all of the values in the quote-enclosed comma-separated list match that search criteria.
-
For fields that may contain multiple values at the same time, search criteria may include single values as well as quote-enclosed comma-separated lists. For instance, a search for
A, B, "C, D, E"on a field that may contain one of more of these letters matches records where the specified field containsAorB, or all ofC,D, andE.
-
-
Specify
n/ain any field to identify events where information is not available for that field; use!n/ato identify the events where that field is populated. -
You can precede many numeric fields with greater than (
>), greater than or equal to (>=), less than (<), less than or equal to (<=), equal to (=), or not equal to (<>) operators.
Note |
When you search a field with long complicated values (such as SHA-256 hash values), copy the search criteria value from source material and paste it into the appropriate field on the search page. |
Wildcards and symbols in searches
When searching in all text fields in connection and Security Intelligence events and in most text fields in other event types, searches for partial matches in text fields require an asterisk (*) to represent unspecified characters in a string. Searches without an asterisk are exact-match searches in these fields. Even in fields that do not require wildcards, we recommend always using wildcards for partial-match searches.
For example, to find example.com, www.example.com, or department.example.com, search for *.example.com. Searching for example.com in most cases returns only example.com.
Search for non-alphanumeric characters
If you want to search for non-alphanumeric characters (including the asterisk character), enclose the search string in quotation marks. For example, to search for the string:
Find an asterisk (*)
enter:
"Find an asterisk (*)"
Objects and application filters in searches
The system allows you to create named objects, object groups, and application filters that can be used as part of your network configuration. You can use these objects, groups, and filters as search criteria when performing or saving searches.
When you perform a search, objects, object groups, and application filters appear in the format, ${object_name}. For example, a network object with the object name ten_ten_network appears as ${ten_ten_network} in a search.
Click the Object (
) icon that appears next to a search field to use an object as a search criterion.
Time constraints in searches
The formats accepted by search criteria fields that take a time value are shown in the tables that follow.
|
Time formats |
Example |
|---|---|
|
|
|
|
|
|
You can precede a time value with one of the operators shown in this table:
|
Operator |
Example |
Explanation |
|---|---|---|
|
|
|
Returns events with a timestamp before 2:23 PM, March 22, 2006. |
|
|
|
Returns events with a timestamp later than today at 2:45 PM. |
IP addresses in searches
When specifying IP addresses in searches, you can enter an individual IP address, a comma-separated list of addresses, an address block, or a range of IP addresses separated with a hyphen (-). You can also use negation.
When you search for hosts by IP address, the results include all hosts for which at least one IP address matches your search conditions, that is, a search for an IPv6 address may return hosts whose primary address in IPv4.
When you use CIDR or prefix length notation to specify a block of IP addresses, the system uses only the portion of the network
IP address specified by the mask or prefix length. For example, if you type 10.1.2.3/8, the system uses 10.0.0.0/8.
|
To specify... |
Type... |
For example... |
|---|---|---|
|
a single IP address |
the IP address. |
|
|
multiple IP addresses using a list |
a comma-separated list of IP addresses. Do not add a space before or after the commas. |
|
|
a range of IP addresses that can be specified with a CIDR block or prefix length |
the IP address block in IPv4 CIDR or IPv6 prefix length notation. |
This specifies any IP in the 192.168.1.0 network with a subnet mask of 255.255.255.0, that is, 192.168.1.0 through 192.168.1.255. |
|
a range of IP addresses that cannot be specified with a CIDR block or prefix |
the IP address range using a hyphen. Do not add a space before or after the hyphen. |
|
|
negation of any of the other ways to specify IP addresses or ranges of IP addresses |
an exclamation point in front of the IP address, block, or range. |
|
URLs in searches
When searching for URLs, include wildcards. For example, use *example.com* to find all variations of the domain, such as https://example.com and division.example.com and example.com/division/.
Managed devices in searches
When you group devices—whether just on the Cloud-Delivered Firewall Management Center, or as actual high availability or scalability configurations—searching for the name for the group correctly returns results for all devices in the group.
If the system finds a match for a group, it replaces the group name with the appropriate member device names for the purpose of performing the search. When you save a search that uses a device group in the device field the system saves the name specified in the device field and performs the device name replacement again each time the search is executed.
Ports in Searches
The system accepts specific syntax for port numbers in searches. You can enter:
-
a single port number
-
a comma-separated list of port numbers
-
two port numbers separated by a dash to represent a range of port numbers
-
a port number followed by a protocol abbreviation, separated by a forward slash (only when searching for intrusion events)
-
a port number or range of port numbers preceded by an exclamation mark to indicate a negation of the specified ports
Note |
Do not use spaces when specifying port numbers or ranges. |
|
Example |
Description |
|---|---|
|
|
Returns all events on port 21, including TCP and UDP events. |
|
|
Returns all events except those on port 23. |
|
|
Returns all TCP-related intrusion events on port 25. |
|
|
Returns all TCP-related intrusion events on ports 21 and 25. |
|
|
Returns all events on ports 21 through 25. |
Feedback