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.
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
errorA field value starting with
salesforce(salesforce*)A field value matching the pattern:
"Get * Details"
error salesforce* "Get * Details"Use
notto exclude results:Messages that start with
errororsalesforceBut don’t contain
"Get User"
error* salesforce* not "Get User"Chain multiple terms with
notto further refine results:Messages that start with
errorand contain2024-12-20T15But don’t contain
"Not Found"or"Validation Failed"
error* 2024-12-20T15* not "Not Found" not "Validation Failed"
Last updated
Was this helpful?