okx-audit-log

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Onchain OS Audit Log

Onchain OS Audit Log

Provide the audit log file path for developers to troubleshoot issues offline.
为开发者提供审计日志文件路径,以便离线排查问题。

Response

回复内容

Tell the user:
  1. Log file path:
    ~/.onchainos/audit.jsonl
    (or
    $ONCHAINOS_HOME/audit.jsonl
    if the env var is set)
  2. Format: JSON Lines, one JSON object per line
  3. First line (device header):
    {"type":"device","os":"<os>","arch":"<arch>","version":"<cli_version>"}
    — written once when the log file is created; preserved across rotations
  4. Entry fields:
    ts
    (local time with timezone, e.g.
    2026-03-18 +8.0 18:00:00.123
    ),
    source
    (cli/mcp),
    command
    ,
    ok
    ,
    duration_ms
    ,
    args
    (redacted),
    error
  5. Rotation: max 10,000 lines, auto-keeps the device header + most recent 5,000 entries
Do NOT read or display the file contents in the conversation.
请告知用户:
  1. 日志文件路径
    ~/.onchainos/audit.jsonl
    (若设置了环境变量
    $ONCHAINOS_HOME
    ,则为
    $ONCHAINOS_HOME/audit.jsonl
  2. 格式:JSON Lines,每行一个JSON对象
  3. 首行(设备头)
    {"type":"device","os":"<os>","arch":"<arch>","version":"<cli_version>"}
    ——在日志文件创建时写入一次;日志轮转时会保留该行
  4. 条目字段
    ts
    (带时区的本地时间,例如
    2026-03-18 +8.0 18:00:00.123
    )、
    source
    (cli/mcp)、
    command
    ok
    duration_ms
    args
    (已脱敏)、
    error
  5. 轮转规则:最多存储10,000行,自动保留设备头 + 最近的5,000条条目
请勿在对话中读取或显示文件内容。