返回 Skill 列表
extension
分类: 开发与工程无需 API Key

monitoring

监控Hawk作业状态,查看日志并诊断问题。当用户想要检查作业进度、查看错误日志、调试失败的作业或为Hawk评估运行生成监控报告时使用。

person作者: jakexiaohubgithub

Hawk Job Monitoring

Monitor running or completed Hawk jobs using the hawk logs command or hawk status subcommands.

Job ID

The JOB_ID parameter is the eval_set_id or scan_run_id from when the job was submitted.

JOB_ID is optional. If omitted, uses the last eval set ID that was used or received.

Available Commands

1. View Logs (Shorthand)

The hawk logs command shows logs:

hawk logs                             # Show last 100 logs (all types)
hawk logs <JOB_ID>                    # Show last 100 logs for job
hawk logs -n 50                       # Show last 50 lines

Options:

  • -n, --lines N - Number of lines to show (default: 100)

Note: Do NOT use the -f/--follow flag - it blocks indefinitely and is intended for interactive terminal use only.

2. View status

Generate a full monitoring report with logs, metrics, and other details:

hawk status                           # Use last job ID
hawk status <JOB_ID>                  # Print report to stdout
hawk status <JOB_ID> > report.json      # Save to file

Options:

  • --hours {hours} - Fetch logs from last N hours (default: 24 hours)

Common Workflows

Check job progress

hawk logs

Generate full report for analysis

hawk status > report.status