MOSS

导航

2016年3月28日 #

ELK IIS 日志-->logstash-->ElasticSearch

摘要: NXLOG 配置 #define ROOT C:\Program Files\nxlog define ROOT C:\Program Files (x86)\nxlog Moduledir %ROOT%\modules CacheDir %ROOT%\data Pidfile %ROOT%\dat 阅读全文

posted @ 2016-03-28 15:24 liuyuhua 阅读(1307) 评论(10) 推荐(0)

2016年3月25日 #

Windows Log4日志发送到ElasticSearch

摘要: 处理多行数据到elasticsearch Nxlog 配置 <Input in> Module im_file File "E:\\log\\webapi\\\err.log" SavePos TRUE </Input> <Output out> Module om_tcp Host 127.0.0 阅读全文

posted @ 2016-03-25 09:59 liuyuhua 阅读(433) 评论(0) 推荐(0)

Windows 系统下json 格式的日志文件发送到elasticsearch

摘要: Windows 系统下json 格式的日志文件发送到elasticsearch配置 Nxlog-->logstash-->ElasticSearch Logstash https://www.elastic.co/guide/en/logstash/current/codec-plugins.htm 阅读全文

posted @ 2016-03-25 09:45 liuyuhua 阅读(1128) 评论(0) 推荐(0)

2016年3月10日 #

Elasticsearch Scripts disabled

摘要: Es 2.2版本中,在查询语句中使用script 时,提示如下错误 scripts of type [inline], operation [aggs] and lang [groovy] are disabled 因为新版本的elasticsearch中,基于安全考虑,默认禁用了动态脚本功能.通过 阅读全文

posted @ 2016-03-10 11:15 liuyuhua 阅读(888) 评论(1) 推荐(0)

ElasticSearch Filter Aggregations

摘要: 类似于sql语句中where子句的作用 { "query": { "match_all": {} }, "aggs": { "aggname": { "filter": { "range": { "time-taken": { "gt": 200 } } }, "aggs": { "avg_size 阅读全文

posted @ 2016-03-10 09:54 liuyuhua 阅读(1109) 评论(0) 推荐(0)

ELK 信息统计分析-2

摘要: Range 按数值类型的字段聚合统计 { "query": { "match_all": {} }, "aggs": { "terms_sc-status": { "range": { "field": "time-taken", "ranges": [ { "key": "small", "to" 阅读全文

posted @ 2016-03-10 09:53 liuyuhua 阅读(709) 评论(0) 推荐(0)

ELK 信息统计分析-1

摘要: Aggregations 格式如下: "aggregations"{ //可以简写为aggs "<aggregation_name>":{ //名称 "<aggregation_type>":{ //agg 类型 <aggregation_body> //统计字段... }, [,"aggregat 阅读全文

posted @ 2016-03-10 09:50 liuyuhua 阅读(2157) 评论(0) 推荐(0)

2015年10月22日 #

linux 下安装nodejs,CentOS 6.5 系统

摘要: 本文采用nodejs 通过源码编译安装方式编译需要gcc-c++编译器和openssl-devel库的支持,如果没有需要先安装。在centos下可以先执行:yum install gcc-c++ openssl-devel我安装的版本是v0.10.30,不同的版本只要修改对应的版本号就可以下载了官网... 阅读全文

posted @ 2015-10-22 10:41 liuyuhua 阅读(433) 评论(0) 推荐(0)

2015年10月15日 #

nginx 做负载均衡

摘要: 最近正在研究Nginx,Nginx作为反向代理服务器,可以对Web服务器提供加速,并且具有负载均衡的功能。首先我要在官网下载Nginx(http://nginx.org/en/download.html),目前最新版本为1.9.5版本,Linux和Windows版本我都下下来了,在两台服务器上做... 阅读全文

posted @ 2015-10-15 15:39 liuyuhua 阅读(342) 评论(0) 推荐(0)

windows 下安装nginx

摘要: 1.首先去官网下载nginxWindows版本,官网下载:http://nginx.org/en/download.html 选择最新版本,下载到软件包后,解压文件包到指定目录,例如我的目录是D:\nginx\nginx-1.9.5\ 打开控制台程序,执行如下操作这样,nginx 服务就启动了。然后... 阅读全文

posted @ 2015-10-15 15:22 liuyuhua 阅读(179) 评论(0) 推荐(0)