Muser

弱小和无知不是生存的障碍,傲慢才是


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Notes

  • Commonweal 404

ELK搭建实时日志分析系统

Posted on 2017-07-25 | Last modified: 2019-02-01 | In Work
Words count: 1,544
日志主要包括系统日志、应用程序日志和安全日志。系统运维和开发人员可以通过日志了解服务器软硬件信息、检查配置过程中的错误及错误发生的原因。经常分析日志可以了解服务器的负荷,性能安全性,从而及时采取措施纠正错误。 通常,日志被分散的储存不同的设备上。如果你管理数十上百台服务器,你还在使用依次登录每台机器的传统方法查阅日志。这样是不是感觉很繁琐和效率低下。当务之急我们使用集中化的日志管理,例如:开源的syslog,将所有服务器上的日志收集汇总。 集中化管理日志后,日志的统计和检索又成为一件比较麻烦的事情,一般我们使用grep、awk和wc等Linux命令能实现检索和统计,但是对于要求更高的查询、排序和统计等要求和庞大的机器数量依然使用这样的方法难免有点力不从心。 开源实时日志分析ELK平台能够完美的解决我们上述的问题,ELK由ElasticSearch、Logstash和Kiabana三个开源工具组成。官方网站:https://www.elastic.co/products Elasticsearch是个开源分布式搜索引擎,它的特点有:分布式,零配置 ...
Read more »

(转载)JVM监控命令详解

Posted on 2017-07-17 | Last modified: 2019-02-01 | In Learning
Words count: 18
http://learnworld.iteye.com/blog/1381949 http://www.cnblogs.com/rainy-shurun/p/5732341.html Written with StackEdit.
Read more »

Perfect Shell: zsh

Posted on 2017-07-11 | Last modified: 2019-08-14 | In Tool
Words count: 183
Recently, I bought a new laptop : HP Omen II Pro. Guess what? It is a GAME LAPTOP!!! Well, I confess that I couldn’t wait to download GTA5 as soon as I got the laptop in my hands. But wait. I stopped myself from doing that. I HAD TO get into work. I had been working as an intern developer in Qunar for two weeks, and, my old, slow, dumb laptop really drives me crazy. I really want to kick its ass and throw it to the ground, but I didn’t do that hahaha. I uninstalled the Window ...
Read more »

实习整理(五)

Posted on 2017-07-11 | Last modified: 2017-10-19 | In Internship
Words count: 890
实习第五周。这周的主要工作内容是协助开发和QA跑case,由于最近我所在的组任务不多,大家的工作主要是修修补补,或者是增加一些小功能。实习了一个多月,目前为止收获最大的地方就是更加熟悉了Linux开发,这点能从我最近写的实习总结中看出来。 周四,leader让我把在线航空公司常见的接口错误统计出来,也就是把航司的错误从日志中搂出来,需要写shell脚本来实现,简单记录一下。 先上脚本: 1234567#! /bin/bashatnodes 'zgrep -o " Code=\"\\w\{3,\}\" " {logname}.log.2017-07-0[8-9]-*.gz ' {hostname1}[3-4] {hostname2}[3-6] > icaair_provider.loggawk '{ print $2 }' icaair_provider.log | gawk -F '=' '{ print $2 }' | ...
Read more »

实习整理(四)

Posted on 2017-07-08 | Last modified: 2017-10-19 | In Internship
Words count: 353
Linux命令之:more or less?more 主要的作用是把输出结果显示在屏幕上,它会一屏停止一下,等待按空格键才继续往上卷。但是,如果看完了这页,想要回头看上一页,是不行的,必须从头再来! less 最主要是改进了more 不能回头看的问题。除了能够随意上下翻页之外,less还提供了非常方便的搜索功能,这在查看很长的日志时是很有用的。 12345按h查看help按g直接跳到第一行按G直接跳到最后按/ search forward按? search backward IDEA集成SonarLint检查代码bugSonar是一款代码检查工具,可以从七个维度检查代码问题:不遵循代码标准,潜在的缺陷,糟糕的复杂度分布,重复,注释不足或者过多,缺乏单元测试,糟糕的设计。而SonarLint是一个IDEA插件,为开发人员提供实时的代码质量检查,尽早发现问题,有助于提高项目质量。 IDEA集成SonarLint的具体方法参加下面文章:http://www.cnblogs.com/0201zcr/p/6722932.html Ubuntu下sublim ...
Read more »
1…8910…12
Muser

Muser

Coding While Thinking

60 posts
6 categories
67 tags
RSS
Search
© 2020 Muser | Site words count: 55.0k
Powered by Hexo
|
Theme — NexT.Muse