# Log Search

## Basic Concept

Log search provides the function of filtering and searching log data, such as querying logs containing `error`, keyword configuration, and counting the number of logs. It is the most commonly used function in the log service.

## Feature Characteristics

### **Basic Function**

Full-text search: It refers to the search for the full text of the log. Whenever any field in the log meets the search condition, the log can be searched. For example, use `error` to search all logs where error occurred.

Keyword search: It refers to the search for specific fields within the log. When a specific field meets the search condition, the log can be searched. For example, add corresponding filter conditions and search the corresponding logs.

### **Topic Selection**

1. Enter log query and select query topic.

<!-- image-todo -->

### **Filter Condition**

1. The input box is for full-text search

2. Add filter conditions

   | Text Selection | Number Selection | Date Selection |
   | -------------- | ---------------- | -------------- |
   | Equals         | Equals           | Equals         |
   | Not Equal      | Not Equal        | Not Equal      |
   | Contains       | Contains         | Contains       |
   | Does Not Contain | Does Not Contain  | Does Not Contain|  
   | Field Exists   | Field Exists     | Field Exists   |
   | Field Does Not Exist | Field Does Not Exist | Field Does Not Exist |
   |                | Specified range  | Specified range|
   |                | Not within specified range | Not within specified range |

3. Date Time Range Selection

<!-- image-todo -->

### **Search Result**

1. Log statistical chart display
2. Log result display
   - Sort by log time
   - Log scroll loading

<!-- image-todo -->