HTTP Access Log 监视器

2019-12-18 19:15:38 +08:00
 SIGEV13

最近面试个公司要求做个 HTTP Access Log 监视器, 虽然最后 on site 环节没有面上,不过俺把作业分享出来希望能对大家有用。

代码 https://github.com/raptorsun/http_log_monitor

还写了个短文介绍一下 https://raptorsun.github.io/howtopymonitor.html

4899 次点击
所在节点    编程
4 条回复
dandycheung
2019-12-18 19:25:42 +08:00
不错。不过一会儿就有人要求中文了。
SIGEV13
2019-12-19 01:14:49 +08:00
@dandycheung 如果有时间俺再加上吧 ^^", 估计得写一小时。
wzw
2019-12-19 10:02:10 +08:00
Nginx 的格式要不要调整?
SIGEV13
2019-12-19 18:43:05 +08:00
@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 就好啦 :)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/630287

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX