This topic describes how to monitor and analyze log data by using LiveTail.
Prerequisites
Background information
In online O&M scenarios, you may need to monitor log data in real time and extract crucial information from the latest log data to troubleshoot exceptions. If you use a traditional O&M method, you must run the tail -f command on each server to query log data. If you want to narrow the scope of the command output, you must run the grep or grep -v command to filter the log data by keyword. To simplify online O&M operations, Log Service provides LiveTail in the Log Service console. You can use LiveTail in the Log Service console to monitor and analyze log data in real time.
Benefits
- Log entries are monitored in real time and can be filtered by keyword.
- Log entries are collected and indexed based on the collection configuration.
- The content of log fields is segmented into words. The word segmentation feature allows you to query contextual log entries that contain specific words.
- You can query a specified log entry from the log file that contains the log entry. This way, you can monitor the log entry in the log file in real time without the need to log on to a server.
Procedure
More operations
Operation | Description |
---|---|
Highlight strings | You can enter one or more strings in the Highlight field. The specified strings are highlighted in the LiveTail section. |
Filter log entries by string | You can enter one or more strings in the Filter By field. The LiveTail section displays only the log entries that contain the specified strings. |
Filter log entries by field | You can select one or more fields from the Filter by Field drop-down list. The LiveTail section does not display the log entries that contain the specified fields. |
Stop LiveTail | You can click Stop to stop LiveTail. After LiveTail is stopped, the LiveTail section is no longer refreshed. You can analyze the log entries in the LiveTail section to troubleshoot exceptions. |