okx-audit-log
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOnchain OS Audit Log
Onchain OS Audit Log
Provide the audit log file path for developers to troubleshoot issues offline.
为开发者提供审计日志文件路径,以便离线排查问题。
Response
回复内容
Tell the user:
- Log file path: (or
~/.onchainos/audit.jsonlif the env var is set)$ONCHAINOS_HOME/audit.jsonl - Format: JSON Lines, one JSON object per line
- First line (device header): — written once when the log file is created; preserved across rotations
{"type":"device","os":"<os>","arch":"<arch>","version":"<cli_version>"} - Entry fields: (local time with timezone, e.g.
ts),2026-03-18 +8.0 18:00:00.123(cli/mcp),source,command,ok,duration_ms(redacted),argserror - 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.
请告知用户:
- 日志文件路径:(若设置了环境变量
~/.onchainos/audit.jsonl,则为$ONCHAINOS_HOME)$ONCHAINOS_HOME/audit.jsonl - 格式:JSON Lines,每行一个JSON对象
- 首行(设备头):——在日志文件创建时写入一次;日志轮转时会保留该行
{"type":"device","os":"<os>","arch":"<arch>","version":"<cli_version>"} - 条目字段:(带时区的本地时间,例如
ts)、2026-03-18 +8.0 18:00:00.123(cli/mcp)、source、command、ok、duration_ms(已脱敏)、argserror - 轮转规则:最多存储10,000行,自动保留设备头 + 最近的5,000条条目
请勿在对话中读取或显示文件内容。