Configuring Log Collection Rules
After the ICAgent is installed, you need to configure the path of host logs to be collected in the log stream. The ICAgent packs multiple logs and sends them to Log Tank Service (LTS) in the unit of log stream.
Prerequisites
- You have created log groups and log streams.
- You have installed the ICAgent.
Procedure
- On the management console of the LTS service, click Log Management.
- In the log group list, click the name of a created log group.
- In the log stream list, click the name of a created log stream.
- On the log stream details page, choose Collection Configuration > Add Path. Figure 1 Collection configuration
- Add the host whose logs are to be collected and click Next. The Configure Collection Path page is displayed.
- Add the path of the host whose logs are to be collected, for example, /var/logs/*/a.log. LTS will collect logs in this path.
- Click Next. The Configure Collection Information page is displayed.
- Log Format: indicates the format of the collected logs displayed on the LTS console. If you select Single-line, each line of the collected log is displayed as a separate log.
- Log Time: indicates the time when logs are collected. If you select System Time, logs are collected based on the current system time.

- Click OK to complete the configuration of log collection rules.
In this case, LTS collects logs based on the preset collection rules.
Last Article: Installing the ICAgent
Next Article: Viewing Logs in Real Time
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.