当前位置:网站首页>Spark log analysis
Spark log analysis
2022-06-26 00:44:00 【bingoabin】
1. summary
When the browser requests the server , If the access log is set on the server , The user's access records will be recorded . In the log , It usually contains a lot of information , But this information is not easy to use , Here we're going to talk about Apache Of access.log Log analysis , To further study Spark Program development under .
2. Suppose the demand
Suppose to provide us with a apache Of access.log file , According to business needs , We need to analyze and get the following requirements :
1. Statistics of daily page visits
2. Count each different HTTP The number of accesses corresponding to the status
3. Statistics are different and independent IP Of visits
4. Count the number of visits to different pages
3. preparation
3.1 Log file download
Download the log for the specified analysis , Of course, you can also use your own real Apache journal , stay tomcat Of logs Directory , In order to make the analysis results more intuitive and obvious , It is recommended to use the download log .
Apache access.log Log download address :http://labfile.oss.aliyuncs.com/courses/456/access.log
3.2 Log file format
After the downloaded log file is opened, it looks like this :
边栏推荐
- Openresty chapter 01 introduction and installation configuration
- 86. (cesium chapter) cesium overlay surface receiving shadow effect (gltf model)
- Redux workflow explanation + small examples
- 19c installing PSU 19.12
- 原型和原型链的理解
- Atlas200dk刷机
- C IO stream (II) extension class_ Packer
- Installing redis on Linux
- mongodb
- DBCA silent installation and database building
猜你喜欢

Compiler Telegram Desktop end (tdesktop) en utilisant vs2022

删库跑路、“投毒”、改协议,开源有哪几大红线千万不能踩?

学习识别对话式问答中的后续问题

基于OpenVINOTM开发套件“无缝”部署PaddleNLP模型

leetcode. 14 --- longest public prefix

Idea set the template of mapper mapping file

Machine vision: illuminating "intelligence" and creating a new "vision" world

元宇宙中的法律与自我监管

机器视觉:照亮“智”造新“视”界

ciscn_2019_en_2
随机推荐
Causes and solutions to the phenomenon of PCBA monument in SMT patch processing
CaMKIIa和GCaMP6f是一样的嘛?
Idea view unit test coverage
Correct writing methods of case, number and punctuation in Chinese and English papers
Analyze the five root causes of product development failure
[image detection] vascular tracking and diameter estimation based on Gaussian process and Radon transform with matlab code
Compiler Telegram Desktop end (tdesktop) en utilisant vs2022
原型和原型链的理解
Methods of modifying elements in JS array
Flink reports error: a JNI error has occurred, please check your installation and try again
Redux workflow explanation + small examples
从进程的角度来解释 输入URL后浏览器会发生什么?
Datetimeformatter and localdatetime
Ssl/tls, symmetric and asymmetric encryption, and tlsv1.3
Function and principle of SPI solder paste inspection machine
Mysql5.7 is in the configuration file my Ini[mysqld] cannot be started after adding skip grant tables
Installing redis on Linux
Apache foundation officially announced Apache inlong as a top-level project
Core ideas of SQL optimization
"Method not allowed", 405 problem analysis and solution