You can search for SCF logs by keyword or use query syntax to combine keywords for search.
The following query statements are supported:
|key:value||Key-value search format. Here,
|A and B||"AND" logic that returns the intersection of A and B. If multiple keywords are used for search at a time, the default logic will be "AND" if they are separated by spaces.|
|A or B||"OR" logic that returns the union of A or B.|
|not B||"NOT" logic that returns the results excluding B.|
|A not B||"MINUS" logic that returns the results including A but excluding B, i.e.,
|"A"||All characters in
|\||Escape character. An escaped character represents the literal meaning of the character, such as
|*||Fuzzy query of keywords that can match zero, single, or multiple random characters.
|?||Fuzzy query of keywords that can match a single character at a specific position. For example, if you enter
|>||"GREATER THAN" logic, which is used for numeric fields.|
|>=||"GREATER THAN OR EQUAL TO" logic, which is used for numeric fields.|
|<||"LESS THAN" logic, which is used for numeric fields.|
|<=||"LESS THAN OR EQUAL TO" logic, which is used for numeric fields.|
|=||"EQUAL TO" logic, which can be used for numeric or text fields. (Fuzzy search is not supported. If you need fuzzy search, please see the key-value search
|in||It is used to query a numeric range. Brackets
- The priority order of operators from high to low is:
- If b is text, then, the difference between
a:blies in that a equals b in the former, while a contains b in the latter (the search is processed based on the word segmentation logic and fuzzy search is supported).
- Syntax keywords are case-insensitive.
- Searches are case-sensitive. If no result is returned, please check whether the letter case is correct and whether there are typos.
|SCF_Duration||double||Execution duration (ms)||SCF_Duration>20|
error or fail
errorin a specified request:
SCF_RequestId:123 and error
SCF_Duration>20 and error
To deduplicate request logs, you can search for
Report RequestId. For example, if you want to query which requests run more than 20 ms, you can use the following statement:
"Report RequestId" and SCF_Duration>20.
Please note that the search cannot begin with
SCF_Duration>20is correct, while
SCF_Duration > 20is incorrect.