• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






张伯雨

学习使人快乐
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 37 下一页

2017年8月30日

基于ELK5.1(ElasticSearch, Logstash, Kibana)的一次整合测试
摘要: 前言开源实时日志分析ELK平台(ElasticSearch, Logstash, Kibana组成),能很方便的帮我们收集日志,进行集中化的管理,并且能很方便的进行日志的统计和检索,下面基于ELK的最新版本5.1进行一次整合测试。ElasticSearch1.概述:ElasticSearch是一个高可扩展的开源的全文搜索分析引擎。它允许你快速的存储、搜索和分析大量数据。ElasticSearch通... 阅读全文
posted @ 2017-08-30 10:42 张伯雨 阅读(387) 评论(0) 推荐(0)
 
acl.go
摘要: package acl import ( "github.com/armon/go-radix" ) var ( // allowAll is a singleton policy which allows all // non-management actions allowAll ACL // 阅读全文
posted @ 2017-08-30 10:38 张伯雨 阅读(265) 评论(0) 推荐(0)
 
单机部署-consul
摘要: 在本机开发环境中,直接通过以下命令可以启动一个单机consul服务器: ./consul agent -server -data-dir=/tmp/consul -bootstrap -advertise=$LOCAL_IP 其中$LOCAL_IP为本地IP地址。 服务器启动后,可以通过$LOCAL 阅读全文
posted @ 2017-08-30 10:37 张伯雨 阅读(3804) 评论(1) 推荐(0)
 

2017年8月29日

baseFileWriter.go
摘要: package blog4goimport ( "fmt" "os" "sync" "time")const ( // unit of sizes _ = iota // ignore first value by assigning to blank identifier // KB unit of kilobyte KB int64 = 1 0 { // format the ex... 阅读全文
posted @ 2017-08-29 18:05 张伯雨 阅读(309) 评论(0) 推荐(0)
 
config.go
摘要: package blog4goimport ( "encoding/xml" "errors" "io/ioutil" "os")const ( // TypeTimeBaseRotate is time base logrotate tag TypeTimeBaseRotate = "time" // TypeSizeBaseRotate is size base logrotate tag T... 阅读全文
posted @ 2017-08-29 18:04 张伯雨 阅读(212) 评论(0) 推荐(0)
 
blog4go.go
摘要: package blog4goimport ( "bufio" "errors" "fmt" "io" "os" "strings" "sync")const ( // EOL end of a line EOL = '\n' // ESCAPE escape character ESCAPE = '\\' // PLACEHOLDER placeholder PLACEHOLDER = '%')... 阅读全文
posted @ 2017-08-29 18:04 张伯雨 阅读(590) 评论(0) 推荐(0)
 
fileWriter.go
摘要: package blog4goimport ( "fmt" "path" "strings")// NewFileWriter initialize a file writer// baseDir must be base directory of log files// rotate determine if it will logrotatefunc NewFileWriter(baseDir... 阅读全文
posted @ 2017-08-29 17:55 张伯雨 阅读(208) 评论(0) 推荐(0)
 
consoleWriter.go
摘要: package blog4goimport ( "fmt" "os" "time")// ConsoleWriter is a console loggertype ConsoleWriter struct { blog *BLog // for stderr errblog *BLog redirected bool closed bool colored bool // log hook ho... 阅读全文
posted @ 2017-08-29 17:55 张伯雨 阅读(291) 评论(0) 推荐(0)
 
level.go
摘要: package blog4goimport ( "fmt" "strings")// LevelType type defined for logging level// just use inttype LevelType intconst ( // level enum 日志枚举 // TRACE trace level TRACE LevelType = iota // DEBUG deb... 阅读全文
posted @ 2017-08-29 17:53 张伯雨 阅读(292) 评论(0) 推荐(0)
 
level.go
摘要: package blog4go// Hook Interface determine types of functions should be declared and// implemented when user offers user defined function call before every// logging action end.// users may use this h... 阅读全文
posted @ 2017-08-29 17:53 张伯雨 阅读(146) 评论(0) 推荐(0)
 
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 37 下一页