A user applied for an Elastic Cloud Server (ECS) from HUAWEI CLOUD for service system deployment. To collect logs from the ECS for O&M, which of the following is the correct sequence of operations?
Option A is the only sequence that respects the essential dependency chain for Huawei Cloud Log Tank Service host-log collection. A log group must exist before its log stream can be created, because a log stream is a subordinate storage and management unit within a log group. Huawei explicitly describes log groups and streams as the basic units used to manage logs and requires creation of the group before creation of its contained stream.
ICAgent is the host-side log collection component. It must be installed on the ECS before LTS can collect host log files according to configured paths and rules. After ICAgent is operational and the destination log stream exists, the administrator configures the relevant collection paths, parsing/collection rules, and ingestion configuration. ICAgent then packages and reports matching log records into the selected log stream.
Only after ingestion has been configured can the administrator reliably access LTS and view the collected logs for searching, analysis, monitoring, troubleshooting, or O&M.
The other alternatives violate basic dependencies by attempting to create a stream before its parent group, configuring collection before the required destination/agent exists, or installing ICAgent after collection configuration.
Reference topics: Log Tank Service; Log Groups; Log Streams; ICAgent; ECS Log Collection.