Log Indexes¶
The system automatically archives log data into corresponding indexes based on set filter conditions. By creating multiple log indexes, you can:
- Isolate log data by business line, environment, or project
- Configure differentiated storage policies for different indexes
- Optimize query performance and reduce scanning of irrelevant data
Note
❗️ By default, new log indexes cannot be created. Please contact your account manager to apply for enabling this feature.
Create¶
- Go to the Create > Log Index page.
- Customize the index name.
- Add a description as needed.
- Add filter conditions.
-
Configure the data storage policy: select the log retention period, after which data is automatically cleaned up.
- Deployment Plan users can customize the storage duration, range: 1d ~ 1,800d.
-
Configure advanced options as needed.
- Confirm.
Filter Conditions¶
Set the filter rules for logs to enter this index.
1. Condition Relationship:
- Match all conditions: Logs must satisfy all filter rules simultaneously to enter this index.
- Match any condition: Logs can enter this index if they satisfy any one of the filter rules.
2. Filter Rules:
- Field Name: Select a log field (e.g.,
source,service,host, etc.). - Operator: Fixed as
in. - Matching Value: Enter field values. Separate multiple values with English commas.
Multiple filter conditions are supported. Click Add Filter to add more rules.
Note
Logs are matched against the index list in order and will only enter the first matching index. The same log will not enter multiple indexes.
Advanced Options (Optional)¶
Matching Service: Used to associate APM data with application logs.
- Input Rule: Supports wildcard fuzzy matching (e.g.,
service*). Separate multiple values with English commas. - Scope: When viewing related logs on the APM > Details page, the system prioritizes matching logs from the index associated with the service.
Configuration Example:
payment*: Matches all services starting withpayment.order-service,user-service: Exactly matches the two specified services.
Index Limits¶
| Limit Item | Description |
|---|---|
| Total Limit | 6 (including the default index), meaning a maximum of 5 custom indexes can be created. |
| Matching Mechanism | Sequential matching. The first matching index takes effect; subsequent indexes are not matched. |
| Storage Duration | Deployment Plan supports 1d ~ 1,800d. SaaS Plan is subject to the selectable range on the page. |
