Hosts

Updated at:

View ECS instance and operating system user details in the Log Audit host resource module.

Procedure

  1. Log on to the Cloud Monitor 2.0 console, click the target Workspace, click Log Audit in the All Features, navigate to Resource Center > Host, and then click Metric Data. If no data appears after ingestion, adjust the time range as prompted on the page.

  2. On the ECS Audit Log page, accept the default settings, click OK, and wait for data ingestion to complete.

  3. Once ingestion is complete, check its status on the Integration Management page within the Integration Center. For example, the policy ID is cloud-acs-ecs-audit-1739174112732.

    • Simple Log Service (SLS) automatically creates a Project named workspace-{workspace name}-{workspace region} and a Logtail collection configuration. This configuration, named {policy ID}-{random environment variable}-system, collects SystemdJournal logs and runs scheduled SQL tasks.

      SQL task name

      Purpose

      Output destination

      Description

      {{policy ID}}-os-user-entity

      Extracts operating system users from SystemdJournal logs.

      A dedicated SLS Logstore for the workspace.

      Project: cms-{workspace name}-{random ID}

      Logstore: {workspace name}__entity

      Operating system users are extracted only if the logs meet the following query conditions:

      • A session starts, and the log message contains pam_unix.

      • A new user is created, and the log message contains new user.

      • A sudo command is executed.

      {{policy ID}}-os-user-topo

      Extracts associations between operating system users and host instances from SystemdJournal logs.

      A dedicated SLS Logstore for the workspace.

      Project: cms-{workspace name}-{random ID}

      Logstore: {workspace name}__topo

Usage details

Data is available in two views: by Host or by operating system user.

  • Host: Under Log Audit > Resource Center > Host, this tab lists your ECS instances.

  • Operating system user: Under Log Audit > Resource Center > Host, select this tab to view operating system users and their associated ECS instance IDs.