当前位置:网站首页>How to efficiently analyze online log
How to efficiently analyze online log
2022-06-24 12:51:00 【Please call me Zeng Aniu】
Intercept the online.log
awk '/Jun 21/,/Jun 22/{if(i>1)print x;x=$0;i++}' online.log > 0621.log
Analysis of the number of logical logs used
cat 0621.log|grep -E "seconds|Complete," > a
awk '{if(i>1)print x,i;x=$0;i++}' a > b
cat b|grep second|awk 'NR==1 {tmp=$8} NR>1 {print $8-tmp-1;tmp=$8}'
Analysis of checkpoints
cat 0621.log |grep seconds|awk '{print $1,$6}'
Logical log backup analysis
cat 0621.log|grep -E "seconds|Backup Completed" > a
awk '{if(i>1)print x,i;x=$0;i++}' a > b
cat b|grep second|awk 'NR==1 {tmp=$8} NR>1 {print $8-tmp-1;tmp=$8}'
Be careful :
If there is quickly Such content needs to be handled manually
边栏推荐
- 1、贪吃蛇游戏设计
- What are the software prototyping tools?
- 一文理解OpenStack网络
- Ghost, a synonym for blog system
- 解析nc格式文件,GRB格式文件的依赖包edu.ucar.netcdfAll的api 学习
- Attack popular science: DDoS
- Troubleshooting and optimization of files that cannot be globally searched by ordinary users in easydss video platform customization project
- 生成 4维 的 气压温度的 nc文件,之后进行代码读取(提供代码)
- Cryptography series: collision defense and collision attack
- [day ui] affix component learning
猜你喜欢

钉钉、飞书、企业微信:迥异的商业门道

手把手教你用AirtestIDE无线连接手机!

The text to voice function is available online. You can experience the services of professional broadcasters. We sincerely invite you to try it out
![[2022 national tournament simulation] BigBen -- determinant, Du Jiao sieve](/img/ec/6c6e3d878e2a05a6e7a4ca336ae134.jpg)
[2022 national tournament simulation] BigBen -- determinant, Du Jiao sieve

LVGL库入门教程 - 颜色和图像

mLife Forum | 微生物组和数据挖掘

从《梦华录》的争议性,谈谈数字版权作品的价值泡沫

“我这个白痴,招到了一堆只会“谷歌”的程序员!”

【概率论期末抱佛脚】概念+公式(不含参数估计)

Mlife forum | microbiome and data mining
随机推荐
解析nc格式文件,GRB格式文件的依赖包edu.ucar.netcdfAll的api 学习
Several common DoS attacks
Kubernetes practical skill: entering container netns
IIS WCF 808 port service access exception
申请MIMIC数据库失败怎么办?从失败到成功的经验分享给你~
How can ffmpeg streaming to the server save video as a file through easydss video platform?
Install MySQL in docker and modify my CNF profile
A flaw in R markdown: folders cannot have Chinese
Tencent released credit risk control results safely: it has helped banks lend more than 100 billion yuan
Opengauss kernel: simple query execution
Who said that "programmers are useless without computers? The big brother around me disagrees! It's true
From theory to practice, decipher Alibaba's internal MySQL optimization scheme in simple terms
Cryptography series: collision defense and collision attack
what the fuck! I'm flattered. He actually wrote down the answers to the redis interview questions that big companies often ask!
Kubernetes practical skills: use cert manager to issue free certificates for DNSPod domain names
How to make secruecrt more productive
Baidu simian: talk about persistence mechanism and rdb/aof application scenario analysis!
Ghost, a synonym for blog system
Pipeline shared library
Experience of IOS interview strategy - App testing and launching