如何使用Apache日志文件列表填充DataTable

时间:2015-11-24 23:07:48

标签: javascript ajax apache datatable logfile

这是基本问题:

我想将一个日志文件解析成一个表,并按IP,状态代码和文件大小格式化每个col,所有这些都是常见的Apache格式日志文件(CLF)。请该怎么做。提前谢谢。

这是Apache预先格式化的LogFile的常见示例。

in24.inetnebr.com - - [01/Aug/1995:00:00:01 -0400] "GET /shuttle/missions/sts-68/news/sts-68-mcc-05.txt HTTP/1.0" 200 1839
uplherc.upl.com - - [01/Aug/1995:00:00:07 -0400] "GET / HTTP/1.0" 304 0
uplherc.upl.com - - [01/Aug/1995:00:00:08 -0400] "GET /images/ksclogo- medium.gif HTTP/1.0" 304 0
uplherc.upl.com - - [01/Aug/1995:00:00:08 -0400] "GET /images/MOSAIC-logosmall.gif HTTP/1.0" 304 0
uplherc.upl.com - - [01/Aug/1995:00:00:08 -0400] "GET /images/USA-logosmall.gif HTTP/1.0" 304 0

0 个答案:

没有答案