Repository navigation
EN Search and Filters
Open the sample from the first walkthrough. Press Ctrl+F (macOS ⌘F), choose Current, turn regex off and search for retry|timeout. Press Enter. With Matches only, the results show source lines 2 and 4. Select line 4 to read what happened just before it. Get the sample log

| If the clue might be… | Scope | How to narrow it |
|---|---|---|
| In the log you are reading | Current | Set start or end lines in a row’s context menu. |
| In one of several open tabs | Global | Right-click the scope control to choose files. Expand the matching file groups. |
| In a folder on disk | Directory | Enter or choose a path and configure extensions, subfolders and hidden directories. A search uses the files present at execution time. |
Open the five-line checkout.txt sample in Current scope. Right-click source line 2 and choose Set search start, then right-click line 4 and choose Set search end. Enter id=42, press Enter and select Matches only.
| Action | Source line numbers after submitting again |
|---|---|
| Start at 2, end at 4 | 2, 3, 4, including both endpoints |
| Right-click and choose Clear search limits | 1, 2, 3, 4, 5 |
Each search tab keeps its own boundaries for each file. Setting only a start searches through the last line. Out-of-range text dims as soon as you change a boundary. The next submission updates the results.
Save gateway.txt and payments.txt in the same empty folder. The files come from two services. One line belongs to a different request.
- Select Directory on the search bar, then choose Configure directory search… or right-click the scope button. Enter the folder path or click Select….
- Enable File types and enter
*.txt. To include another extension, use*.txt|*.log. Clearing the checkbox includes all file types. Turn on Include subdirectories to search below this folder. This also makes Include hidden directories available. - Confirm the directory options. In the main query field, enter
id=42, press Enter and choose Matches only. With an unlimited result count, each file group has two hits. Expand gateway and read the source numbers 1 and 3. The health check on line 2 belongs to another request.
Opening a directory result creates a file tab when needed. Run the search again to pick up files added to the directory.
To see which service reported trouble first, right-click these directory results and choose Merge results in new tab. Go straight to the illustration after step 3 of the next exercise. Check the four events in time order
-
Literal search. A vertical bar separates alternatives. Spaces count, including at either end. Other punctuation such as
.matches itself. -
Regex search. Enable regex to find a pattern, for example
ERROR.*id=[0-9]+. On the sample this selects line 4. Patterns run on one line at a time. Rust regex supports neither look-around nor backreferences. A syntax error leaves the previous results available. -
Quick find inside a pane. Click the log or results, then press Ctrl+Shift+F / ⌘⇧F. Use Enter / Shift+Enter for the next or previous occurrence, Esc to close. Quick find has its own case, whole-word and regex options. Its literal mode searches for the actual
|character.
Use + in the status bar to start a second search. For instance, keep retry|timeout in one tab and search for id=42 in another. Each keeps its draft, result mode, selected rows, folded groups, scroll position and per-file line limits. Case and regex switches are shared. Run the query again after changing them.
Double-click a search tab to rename it or drag to reorder it. The list button finds tabs when the strip is crowded. Closing the last current-file search tab also starts that file’s close procedure. Global and directory searches may all be closed and recreated with +.
Each window runs one search at a time and queues the others. Switching tabs lets a search finish in the background. Submitting again on the same tab replaces its previous job. Stop cancels the current tab’s search. The last completed results stay visible until the next set is ready.
| Result mode | With lines 2 and 4 matching and line 3 marked |
|---|---|
| Matches only | 2, 4 |
| Marks only | 3 |
| Marks & matches | 2, 3, 4. A row that both matches and is marked appears once. |
An empty query can show marked lines. Settings → Search controls the maximum matches per file. With a nonzero limit, each file contributes its first N matches and the export uses the resulting set. Set the limit to 0 and rerun the search when you need all matches.
Recall a previous query from suggestions or manage it in Settings → History. To reuse a named rule, select it under Filters and submit the query. A regex filter can enable regex mode. Reusable filters · Export results · Search performance
第一次使用 · First investigation
- 安装与升级 · Install or upgrade
- 用五行日志排查超时 · Trace your first timeout
- 认识工作区 · Find your way around
- 按排查场景找功能 · Common investigations
阅读与搜索日志 · Read and search logs
- 打开文件与文件夹 · Open files and folders
- 跟随动态日志 · Follow a growing file
- 搜索日志 · Search logs
- 标记与高亮 · Mark and highlight lines
- 导出结果与时间合并 · Export or merge results
- 编辑文件与剪贴板文字 · Edit a file or clipboard text
过滤器与个人设置 · Filters and preferences
- 下载与分享在线过滤器 · Use and share cloud filters
- 设置与个性化 · Adjust the workspace
- 快捷键速查 · Keyboard shortcuts
- 鼠标、选区与焦点 · Mouse, selection and focus
帮助与隐私 · Help and privacy
开发与参考 · Development and reference