Follow the directions below to search logs by keyword and time range:
Alternatively, click Search in the Operation column of the row containing the target log stream.
Logs that contain the keyword are displayed.
Search syntax:
Filter |
Description |
---|---|
Exact search by keyword |
LTS searches for logs containing the exact keyword (case-sensitive) that you specify. A keyword is the word between two adjacent delimiters. You can add an asterisk (*) after a keyword, for example, error*, if you are not familiar with delimiters. |
Exact search by phrase |
LTS searches for logs containing the exact phrase (case-sensitive) that you specify. |
&& |
Intersection of search results. |
|| |
Union of search results. |
AND |
Intersection of search results. |
NOT |
Logs that contain the keyword after NOT are excluded. |
* |
Fuzzy search. The asterisk (*) can only be after a keyword to replace an unspecified number of characters. |
? |
Fuzzy search. The question mark (?) can be put in the middle or at the end of a keyword to replace a character. |
Operators (such as &&, ||, AND, NOT, *, ?, and :) contained in raw logs cannot be used to search for logs.
Search rules:
For example, if you enter error*, all logs containing error will be displayed and those start with error will be highlighted.
For example, if you enter casInstanceID:in* hostIP:x.x.x.x kkfa, the following is displayed:
{ "casApplicationName": "app", "casEnvironmentName": "env", "hostName": "ecs-zc-xxxx", "collectTime": "15838xxxxx", "hostIP": "x.x.x.x", "logContent": "4312341341341314 kkfa dfa\\n", (Keyword) "appName": "testhshroma", "casInstanceID": "ins-111", "hostId": "b32dcfc0-615b-4de6-a796-dfccaxxxxxx", "casComponentID": "com-111" }
Search examples: