访问日志生成器

生成 Apache Combined、Apache Common 或 Nginx 格式的逼真虚假 Web 服务器访问日志条目,用于测试日志解析和分析流水线。

0 items
#

访问日志条目是如何生成的

每个条目包含:客户端 IP 地址、时间戳、请求的 HTTP 方法和路径、响应状态码、发送的字节数、引荐来源 (Referer) URL 以及用户代理 (User Agent) 字符串。

支持的格式

  • Apache Combined (默认) — IP - - [时间戳] "方法 /路径 HTTP/1.1" 状态 字节数 "引荐来源" "用户代理"
  • Apache Common — 相同,但不含引荐来源和用户代理字段
  • Nginx — 结构与 Apache Combined 相同

Frequently Asked Questions

访问日志用于测试日志解析器、SIEM 摄取流水线、分析仪表板和异常检测系统。

Apache Combined Log Format (the most common), Apache Common Log Format (without referer/UA), and Nginx default format. All three are structurally identical in this generator — the combined format includes referer and user-agent fields.

No. IP addresses are randomly generated and not linked to real users or devices. They may fall in private, public, or reserved ranges — intentionally, to cover all test cases.

Yes. The generated entries include a realistic mix of methods, paths, and status codes (including 401, 403, 404, 500) that are useful for testing rule-based IDS/SIEM systems.

Yes. Export to CSV for spreadsheet analysis or JSON for programmatic use. The full log line is in the "log_entry" column.

Related Tools

所有生成的数据均为虚构,不适合作为真实的个人信息使用。