Node and operating system (OS) audit logs in Google Distributed Cloud (GDC) air-gapped appliance let
you track security and administrative access events on hardware nodes. These
logs record metadata fields and JSON payloads for sign-in attempts, console
commands, antivirus scans, and intrusion detection checks.

|---|---|
| **Workload location** | Hardware |
| **Audit log source** | Node OS |
| **Audited operations** | - [Sign-in events](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform-application/pa-ao-operations/audit-os#sign-in-events) - [Operating system teletypewriter (OS TTY) events](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform-application/pa-ao-operations/audit-os#os-tty-events) - [Clam antivirus (ClamAV) events](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform-application/pa-ao-operations/audit-os#clamav-events) - [Advanced Intrusion Detection Environment (AIDE) events](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform-application/pa-ao-operations/audit-os#aide-events) <br /> |

## Sign-in events

All access attempts and actions through OS SSH connections.

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `ident` | `"ident": "sshd"` |
| **Target** *(Fields and values that call the API)* | `message` | For example, `"message": "pam_tty_audit(sshd:session): restored status to 0"` |
| **Action** *(Fields containing the performed operation)* | `message` | For example, `"message": "pam_tty_audit(sshd:session): restored status to 0"` |
| **Event timestamp** | `time` | For example, `"time": "2022-11-30T22:53:39.442037+00:00"` |
| **Source of action** | `host` | For example, `"host": "zb-aa-bm01"` |
| **Outcome** | `message` | For example, `"message": "pam_tty_audit(sshd:session): restored status to 0"` |
| **Other fields** | *Not applicable* | *Not applicable* |

**Example log**

    {
      "pri": "87",
      "time": "2022-11-30T22:53:39.442037+00:00",
      "host": "zb-aa-bm01",
      "ident": "sshd",
      "pid": "757322",
      "msgid": "-",
      "extradata": "-",
      "message": "pam_tty_audit(sshd:session): restored status to 0",
      "_gdch_cluster": "root-admin",
      "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-dn5jn",
      "_gdch_service_name": "inventory-machine-bm-e2c2a7e1"
    }

## OS TTY events

All commands printing outputs on the console.

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `ident` | `"ident": "audispd"` |
| **Target** *(Fields and values that call the API)* | `message` | For example, `"message": "node=ubuntu type=TTY msg=audit(1671531815.870:94280): tty pid=1217279 uid=0 auid=0 ses=3536 major=136 minor=0 comm=\"pager\" data=71"` |
| **Action** *(Fields containing the performed operation)* | `message` | For example, `"message": "node=ubuntu type=TTY msg=audit(1671531815.870:94280): tty pid=1217279 uid=0 auid=0 ses=3536 major=136 minor=0 comm=\"pager\" data=71"` |
| **Event timestamp** | `time` | For example, `"time": "2022-12-20T10:23:35.878924+00:00"` |
| **Source of action** | `host` | For example, `"host": "zk-aa-bm08"` |
| **Outcome** | `message` | For example, `"message": "node=ubuntu type=TTY msg=audit(1671531815.870:94280): tty pid=1217279 uid=0 auid=0 ses=3536 major=136 minor=0 comm=\"pager\" data=71"` |
| **Other fields** | *Not applicable* | *Not applicable* |

**Example log**

    {
      "pri": "14",
      "time": "2022-12-20T10:23:35.878924+00:00",
      "host": "zk-aa-bm08",
      "ident": "audispd",
      "pid": "-",
      "msgid": "-",
      "extradata": "-",
      "message": "node=ubuntu type=TTY msg=audit(1671531815.870:94280): tty pid=1217279 uid=0 auid=0 ses=3536 major=136 minor=0 comm=\"pager\" data=71",
      "_gdch_cluster": "root-admin",
      "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-w6fl4",
      "_gdch_service_name": "inventory-machine-bm-7cc496d5"
    }

## ClamAV events

All ClamAV scanning events.

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `ident` | Possible values: - `"ident": "clamav"` - `"ident": "clamonacc"` <br /> |
| **Target** *(Fields and values that call the API)* | `message` | For example, `"message": "No virus found"` |
| **Action** *(Fields containing the performed operation)* | `message` | For example, `"message": "No virus found"` |
| **Event timestamp** | `time` | For example, `"time": "2022-12-20T04:01:47.219862+00:00"` |
| **Source of action** | `host` | For example, `"host": "zk-aa-bm09"` |
| **Outcome** | `message` | For example, `"message": "No virus found"` |
| **Other fields** | *Not applicable* | *Not applicable* |

**Example log**

    {
      "pri": "86",
      "time": "2022-12-20T04:01:47.219862+00:00",
      "host": "zk-aa-bm09",
      "ident": "clamav",
      "pid": "-",
      "msgid": "-",
      "extradata": "-",
      "message": "No virus found",
      "_gdch_cluster": "root-admin",
      "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-lcxgq",
      "_gdch_service_name": "inventory-machine-bm-b11f4752"
    }

## AIDE events

All AIDE intrusion detection events.

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `ident` | `"ident": "aide"` |
| **Target** *(Fields and values that call the API)* | `message` | For example, `"message": "AIDE check passed."` |
| **Action** *(Fields containing the performed operation)* | `message` | For example, `"message": "AIDE check passed."` |
| **Event timestamp** | `time` | For example, `"time": "2022-12-20T10:20:09.428106+00:00"` |
| **Source of action** | `host` | For example, `"host": "zk-aa-bm08"` |
| **Outcome** | `message` | For example, `"message": "AIDE check passed."` |
| **Other fields** | *Not applicable* | *Not applicable* |

**Example log**

    {
      "pri": "86",
      "time": "2022-12-20T10:20:09.428106+00:00",
      "host": "zk-aa-bm08",
      "ident": "aide",
      "pid": "-",
      "msgid": "-",
      "extradata": "-",
      "message": "AIDE check passed.",
      "_gdch_cluster": "root-admin",
      "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-lcxgq",
      "_gdch_service_name": "inventory-machine-bm-7cc496d5"
    }