
最近面试个公司要求做个 HTTP Access Log 监视器, 虽然最后 on site 环节没有面上,不过俺把作业分享出来希望能对大家有用。
1 dandycheung 2019-12-18 19:25:42 +08:00 via iPhone 不错。不过一会儿就有人要求中文了。 |
2 SIGEV13 OP @dandycheung 如果有时间俺再加上吧 ^^", 估计得写一小时。 |
3 wzw 2019-12-19 10:02:10 +08:00 via iPhone Nginx 的格式要不要调整? |
4 SIGEV13 OP @wzw Nginx 的默认格式也符合 W3 标准:remotehost rfc931 authuser [date] "request" status bytes Nginx: https://docs.nginx.com/nginx/admin-guide/monitoring/logging/#access_log W3: https://www.w3.org/Daemon/User/Config/Logging.html#common-logfile-format 如果换格式, 调整一下 Parser 就好啦 :) |