当前位置:网站首页>Spark日志分析
Spark日志分析
2022-06-25 22:02:00 【bingoabin】
1. 概述
当浏览器请求服务器时,如果在服务器上设置了访问日志,就会记录下用户的访问记录。在日志里,通常包含大量的信息,但是这些信息不太容易被利用,这里我们通过对Apache的access.log日志进行分析,来进一步的学习Spark下的程序开发。
2. 假定需求
假设给我们提供一份apache的access.log文件,根据业务需求,我们需要分析得到以下几方面的需求:
1.统计每天的页面访问量
2.统计每种不同的HTTP状态对应的访问数
3.统计不同独立IP的访问量
4.统计不同页面的访问量
3. 准备工作
3.1 日志文件下载
下载指定分析的日志,当然也可以使用自己真实的Apache日志,在tomcat的logs目录中,为了让分析结果更加的直观明显,还是推荐使用下载日志。
Apache access.log日志下载地址:http://labfile.oss.aliyuncs.com/courses/456/access.log
3.2 日志文件格式
下载后的日志文件打开后类似这样:
边栏推荐
- LeetCode-1528-重新排列字符串-哈希表-字符串
- Visual studio code create minimal web API (asp.net core)
- [2023 proofreading and bidding questions] Part 1: Measurement Technology FPGA post (roughly analytical version)
- String object (constant) pool
- Mutual conversion between QT utf8 and Unicode encoding, and the Unicode encoding output format is &xxxxx
- 解决TypeError: Unicode-objects must be encoded before hashing
- #23class介绍
- 28 rounds of interviews with 10 companies in two and a half years (including byte, pinduoduo, meituan, Didi...)
- 213.打家劫舍 II
- CSDN force value
猜你喜欢

After xampp restarts, the MySQL service cannot be started.

中序线索二叉树

Pointer strengthening and improvement

UE4 learning record 2 adding skeleton, skin and motion animation to characters

Leetcode-1528- rearrange string - hash table - string

My vscode

hiberate核心API/配置文件/一级缓存详解
![[untitled] open an item connection. If it cannot be displayed normally, Ping the IP address](/img/34/d3c146d5faa2728cb5eb8f3ee00200.png)
[untitled] open an item connection. If it cannot be displayed normally, Ping the IP address

二叉排序树

UE4 学习记录二 给角色添加骨架,皮肤,及运动动画
随机推荐
Pycharm student's qualification expires, prompting no suitable licenses associated with account solution
Online customer service - charging standards and service provision of third parties
18亿像素火星全景超高清NASA放出,非常震撼
C. Fibonacci Words-April Fools Day Contest 2021
Once beego failed to find bee after passing the go get command Exe's pit
How does excel translate Chinese words into English automatically? This formula teaches you
213.打家劫舍 II
Kotlin空指针Bug
Konva series tutorial 2: drawing graphics
Uniapp - call payment function: Alipay
My vscode
Qt Utf8 与 Unicode 编码的互相转换, Unicode编码输出为格式为 &#xXXXX
经典图像分割网络:Unet 支持libtorch部署推理【附代码】
php性能优化
Reproduction of an implant found by Kaspersky that writes shellcode into evenlog
QComboBox下拉菜单中有分隔符Separator时的样式设置
Binary, hexadecimal, big end and small end
The package name of the manifest file in the library project and the app project are not the same
毕业旅行 | 伦敦5日游行程推荐
How to use drawing comparison function in CAD