String Searches
CLQL String Searches
Using strings is the simplest way to filter your log messages. Here are some basics:
- By default, a string search matches an entire field value exactly.
- For example, if a field value is
Get User Details, then searching forGetalone won’t match.
- For example, if a field value is
- Use
*to do partial matches.Get*will match any field value starting with “Get” (e.g., “Get User Details”).
- You don’t need quotes unless your search string has spaces.
Get User(without quotes) will match any message with exactly “Get” and exactly “User” somewhere."Get User"(in quotes) will match the entire phrase “Get User” with the space included.
Examples
-
Find all messages that match:
- A field value of exactly
error - A field value starting with
salesforce(salesforce*) - A field value matching the pattern:
"Get * Details"
GraphQLerror salesforce* "Get * Details" - A field value of exactly
-
Use
notto exclude results:- Messages that start with
errororsalesforce - But don’t contain
"Get User"
GraphQLerror* salesforce* not "Get User" - Messages that start with
-
Chain multiple terms with
notto further refine results:- Messages that start with
errorand contain2024-12-20T15 - But don’t contain
"Not Found"or"Validation Failed"
GraphQLerror* 2024-12-20T15* not "Not Found" not "Validation Failed" - Messages that start with