Log Details¶
In the log list, click the expand icon on the left of a single log entry to slide out the details page of the current log. You can view detailed log information, including log generation time, host, source, service, content, extended fields, and context viewing.
View Full Logs¶
When a log is reported to TrueWatch, if a single log record exceeds 1M, the system splits it into multiple records using the 1M threshold. For example, a 2.5M log is split into three records: 1M, 1M, and 0.5M. You can verify the completeness of the split log using the following fields:
Field |
Type | Description |
|---|---|---|
__truncated_id |
string | The unique identifier of the log. Split log records share the same __truncated_id, with the ID prefix LT_xxx. |
__truncated_count |
number | The total number of split log records. |
__truncated_number |
number | The split sequence number of the log, starting from 0. 0 indicates the first record of the log. |
On the log details page, if the current log has been split into multiple records, the View Full Log button appears in the upper right corner. Click this button to open a new page that lists all related log records in split order. The page also highlights the log selected before the jump with color, so you can quickly locate upstream and downstream logs.
TOBY AI TruePilot Error Analysis¶
TrueWatch provides one-click error log parsing. It uses large language models to automatically extract key information from logs and combines online search engines and operations knowledge bases to quickly analyze possible failure causes and provide initial solutions.
-
Filter all logs with status
error; -
Click a single record to expand the details page;
-
Click TOBY AI TruePilot Error Analysis in the upper right corner;
-
Anomaly analysis starts.
Error Details¶
If the current log contains error_stack or error_message field information, the system provides error details related to the log.
To view more log error information, see Log Error Tracking.
Attribute Fields¶
Click an attribute field for quick filtering to view host, process, trace, and container data related to the log.
| Field | Description |
|---|---|
| Filter Field Value | Add this field to the Log Explorer to view all log data related to this field. |
| Exclude Field Value | Add this field to the Log Explorer to view all log data except this field. |
| Add to Display Columns | Add this field to the explorer list for viewing. |
| Copy | Copy this field to the clipboard. |
| View Related Containers | View all containers related to this host. |
| View Related Processes | View all processes related to this host. |
| View Related Traces | View all traces related to this host. |
| View Related Inspections | View all inspection data related to this host. |
Log Content¶
Log content automatically switches between JSON and text viewing modes based on the message type. The log details display log content according to the index mode and log fields:
- When
messageexists in the log, themessagecontent is displayed first, and the mode switches between JSON and text based on the content type; - When a full-line indexed log has no
message, the system displays log content by combining the business fields of the current log; - System fields are not part of the full-line indexed log content;
- Log content supports expanding and collapsing. It is expanded by default; when collapsed, only one line is displayed.
Log content supports expanding and collapsing. It is expanded by default; when collapsed, only one line is shown.
For logs with source:bpf_net_l4_log, both JSON and packet viewing modes are provided automatically. Packet mode displays client, server, time, and other information, and supports switching between absolute time and relative time display. Absolute time is the default. The switching configuration is saved in the local browser.
AI Parsing Fields¶
Click AI Parsing Fields in the log content area to parse the entire log, or drag to select a portion of the original text in the popup to preview the extracted field names, types, and values. After confirming the fields to retain, you can open the Pipeline creation page in a new tab to continue adjusting the prefilled configuration and parsing rules, and test and save as needed.
Enable the Workspace AI feature before use, and you must have Pipeline management permissions. The generated result serves only as a draft; subsequent logs are processed according to the Pipeline configuration only after saving. For the complete workflow, see Parse Fields from Log Details and Create a Pipeline.
Selecting Log Text¶
In log content that supports text selection, you can click Chinese or mixed Chinese-English segments and use the menu to filter, exclude, or copy. Clicking a segment only opens the menu; the query is updated only after selecting a filter operation.
The selection range depends on the text format and display position:
| Content Type | Selection Rules |
|---|---|
| Plain text | Segmented by whitespace and common punctuation. Chinese commas, periods, semicolons, colons, exclamation marks, question marks, enumeration commas, parentheses, square brackets, book title marks, and quotation marks can serve as separators; English quotation marks, question marks, equals signs, commas, and parentheses can also separate segments. Continuous Chinese text is not automatically split by meaning. |
| Specific formats such as identifiers, paths, IP addresses, and time | Recognized according to the corresponding format. Connectors such as _, -, /, and : may be retained in the selected content and are not always split by symbol. |
| URLs | Recognized as a whole, retaining symbols inside the URL such as ?, =, &, and #. URL recognition ends when whitespace, English quotation marks, or angle brackets are encountered. |
For example, in plain text 用户登录失败,请重试。, you can select "用户登录失败" or "请重试"; in 调用API失败 请稍后重试, you can select "调用API失败" and "请稍后重试" as two segments separated by whitespace. The URL https://example.com/search?q=日志&limit=10#result is recognized as a whole and is not split by internal query parameters or fragment identifiers.
Selection Differences Across Display Positions
Content inside double quotation marks or square brackets in the log details body may be selectable as a whole segment. Its selection behavior is not fully consistent with hover selection in the list or JSON display. When operating, rely on the current selection range.
When applying a filter, the system appends the selected segment to the current query while retaining the existing index, time range, workspace, and other filter conditions. If part of the text matches search highlighting, clicking still selects the complete segment.
When filtering through a JSON field, the corresponding actual field path is still used. Modes such as DQL and SLS continue to follow the operation restrictions and conversion confirmation rules of the current entry.
JSON Search¶
In JSON-format logs, JSON search is available for both key and value. After clicking, the explorer search bar adds the @key:value format for searching.
For multi-level JSON data, use . to represent the hierarchy. For example, @key1.key2:value searches for the value corresponding to key2 under key1.
For more details, see JSON Search.
Extended Fields¶
-
In the search bar, enter a field name or value to quickly search and locate;
-
After checking the field alias, view it after the field name;
-
Hover over an extended field and click the dropdown icon to choose the following operations for that field:
-
Filter Field Value
-
Exclude Field Value
-
Add to Display Columns
-
Perform dimension analysis: click to jump to Analysis Mode > Time Series Chart
-
Copy
-
Note
If you choose to add a field to the display columns, an icon indicator appears in the list for easy distinction.
Context Logs¶
The context query feature of the log service uses time clues to help you trace related records before and after an abnormal log and quickly locate the root cause.
-
On the log details page, you can directly view the context logs of the current record;
-
Use the dropdown on the left to select an index and filter the corresponding data;
-
Sort the data;
-
Jump to a new Log Explorer page directly from the current details page;
Additional Context Logic
Based on the returned data, 50 records are loaded on each scroll.
How is the returned data queried?
Prerequisite: Does the log have a log_read_lines field? If yes, follow logic a; if not, follow logic b.
a. Get the log_read_lines value of the current log and use it to filter log_read_lines >= {{log_read_lines.value-30}} and log_read_lines <= {{log_read_lines.value +30}}
DQL example: current log line number = 1354170
Then:
L::RE(`.*`):(`message`) { `index` = 'default' and `host` = "ip-172-31-204-89.cn-northwest-1" AND `source` = "kodo-log" AND `service` = "kodo-inner" AND `filename` = "0.log" and `log_read_lines` >= 1354140 and `log_read_lines` <= 1354200} sorder by log_read_lines
b. Get the current log time and derive the query start time and end time by looking backward and forward
-
Start time: 5 minutes backward from the current log time
-
End time: look forward 50 records from the current log and take the time of the 50th record (·). If
time= current log time, usetime+1 microsecondas the end time; iftime≠ current log time, usetimeas the end time.
Log Context Page¶
Click to jump to the log context page. You can manage all current data with the following operations:
-
Enter text in the search box to search and locate data;
-
Click the button on the side to switch from the system default auto-wrap to content overflow mode. Each log then displays as a single line, and you can swipe left or right to view as needed;
-
Return to the top/bottom;
-
Load 100 records upward/downward;
-
Click the export icon to export the current log context data.
Related Analysis¶
The system supports related analysis of log data. In addition to error details, extended fields, and context logs, you can also learn about the host, containers, network, and more corresponding to the log in one place.
Built-in Pages¶
For built-in pages such as Host, Containers, and Pod, you can perform the following operations:
(Using the "Host" built-in page as an example)
-
Edit the display fields of the current page. The system automatically matches the corresponding data based on the fields;
-
Select to jump to the metrics view or host details page;
-
Filter the time range.
Note
Only workspace managers can modify the display fields of built-in pages. It is recommended to configure common fields. If the page is shared by multiple explorers, field modifications take effect in real time.
For example: if you configure the "index" field here, logs with this field display normally, while the trace explorer cannot display the corresponding value if this field is missing.
Built-in Views¶
In addition to the views displayed by default here, you can also bind user views.
-
Enter the built-in view binding page;
-
View the default associated fields. You can keep or delete fields, and add new
key:valuefields; -
Select a view;
-
After binding is complete, view the bound built-in view in the host object details. You can click the jump button to go to the corresponding built-in view page.








