刘朝朋Aaron Liu 2020-02-16 21:10 采纳率: 0%
浏览 824
已采纳

作业题目: 网站访问日志分析

1 统计本日志文件的总pv、uv
2 列出全天每小时的pv、uv数
3 列出top 10 uv的IP地址,以及每个ip的pv点击数
4 列出top 10 访问量最多的页面及每个页面的访问量
5 列出访问来源的设备列表及每个设备的访问量

以下为部分日志文件:
122.71.241.175 - - [15/Apr/2019:00:00:01 +0800] "GET /api/v1/affiches/ HTTP/1.1" 200 24 "https://m.luffycity.com/home" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
122.71.241.175 - - [15/Apr/2019:00:00:04 +0800] "GET /api/v1/course_sub/category/list/ HTTP/1.1" 200 413 "https://m.luffycity.com/courses" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
106.121.76.134 - - [15/Apr/2019:00:00:05 +0800] "GET /api/v1/course/71/sections/ HTTP/1.1" 200 601 "https://m.luffycity.com/courses/71/common-problems" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1"
122.71.241.175 - - [15/Apr/2019:00:00:05 +0800] "GET /api/v1/courses?sub_category=2&ordering=%27%27 HTTP/1.1" 301 0 "https://m.luffycity.com/courses" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
122.71.241.175 - - [15/Apr/2019:00:00:09 +0800] "GET /api/v1/courses/?sub_category=4&ordering=%27%27 HTTP/1.1" 200 1605 "https://m.luffycity.com/courses" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
122.71.241.175 - - [15/Apr/2019:00:00:14 +0800] "GET /api/v1/courses/?sub_category=7&ordering=%27%27 HTTP/1.1" 200 695 "https://m.luffycity.com/courses" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
106.121.76.134 - - [15/Apr/2019:00:00:27 +0800] "GET /api/v1/course/71/right/ HTTP/1.1" 200 750 "https://m.luffycity.com/courses/71/details-introduce" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1"
122.71.241.175 - - [15/Apr/2019:00:00:32 +0800] "GET /api/v1/courses/?sub_category=9&ordering=%27%27 HTTP/1.1" 200 692 "https://m.luffycity.com/courses" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
122.71.241.175 - - [15/Apr/2019:00:00:36 +0800] "GET /api/v1/courses/?sub_category=10&ordering=%27%27 HTTP/1.1" 200 715 "https://m.luffycity.com/courses" "Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.3 baiduboxapp/11.3.0.13 (Baidu; P1 8.1.0)"
106.121.76.134 - - [15/Apr/2019:00:01:00 +0800] "GET /api/v1/nation/ HTTP/1.1" 200 1586 "https://m.luffycity.com/signup" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1"


  • 写回答

2条回答 默认 最新

  • qingdao1528 2020-02-16 21:49
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 用verilog实现tanh函数和softplus函数
  • ¥15 Hadoop集群部署启动Hadoop时碰到问题
  • ¥15 求京东批量付款能替代天诚
  • ¥15 slaris 系统断电后,重新开机后一直自动重启
  • ¥15 QTableWidget重绘程序崩溃
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站