码迷,mamicode.com
首页 > 其他好文 > 详细

elk 收藏

时间:2016-03-07 19:26:00      阅读:579      评论:0      收藏:0      [点我收藏+]

标签:elk 收藏

$ gem sources --remove https://rubygems.org/

$ gem sources -a https://ruby.taobao.org/

$ gem sources -l

/usr/local/logstash/vendor/jruby/bin/gem install logstash-output-zabbix

vim /usr/local/logstash/Gemfile

https://ruby.taobao.org

/usr/local/logstash/bin/plugin install /usr/local/logstash/vendor/jruby/lib/ruby/gems/shared/cache/logstash-output-zabbix-2.0.0.gem

源码安装方法

gem build logstash-filter-awesome.gemspec

bin/plugin install /your/local/plugin/logstash-filter-awesome.gem

redis

安装

make

make install

cp redis.conf /etc/

修改daemonize yes---目的使进程在后台运行

/usr/local/bin/redis-server /etc/redis.conf

*** CURRENT SOURCES ***

https://ruby.taobao.org

gem "zabbix_protocol", "0.1.4", :path => "/usr/local/logstash/vendor/jruby/lib/ruby/gems/shared/gems/zabbix_protocol-0.1.4"

/usr/local/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/bin/bundle

                path => ["/data/logs/nginx/access_blog.caixin.com*"]

cat <<EOF >> /data/logs/nginx/1.log

>  "192.168.2.114 - - [17/Nov/2015:16:49:16 +0800] liuyunpeng.blog.caixin.com "GET /usercategory/972 HTTP/1.1" 200 14417 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" 182.254.155.237"

> EOF

0> wget https://github.com/logstash-plugins/logstash-filter-aggregate 

0> unzip master

0> cd logstash-filter-aggregate-master

0> gem build logstash-filter-aggregate.gemspec   #会生成 logstash-filter-aggregate-0.1.3.gem 文件

0> /path/to/your/logstash/bin/plugin  install   /path/to/your/logstash-filter-aggregate-0.1.3.gem 

Validating ./logstash-filter-aggregate-0.1.3.gem

Installing logstash-filter-aggregate

Installation successful

[root@nginx bin]# ./gem install logstash-output-zabbix

Fetching: jrjackson-0.3.7.gem (100%)

Successfully installed jrjackson-0.3.7

Fetching: thread_safe-0.3.5-java.gem (100%)

Successfully installed thread_safe-0.3.5-java

Fetching: minitar-0.5.4.gem (100%)

Successfully installed minitar-0.5.4

Fetching: i18n-0.6.9.gem (100%)

Successfully installed i18n-0.6.9

Fetching: polyglot-0.3.5.gem (100%)

Successfully installed polyglot-0.3.5

Fetching: treetop-1.4.15.gem (100%)

Successfully installed treetop-1.4.15

Fetching: jruby-openssl-0.9.12-java.gem (100%)

Successfully installed jruby-openssl-0.9.12-java

Fetching: concurrent-ruby-0.9.2-java.gem (100%)

Successfully installed concurrent-ruby-0.9.2-java

Fetching: gems-0.8.3.gem (100%)

Successfully installed gems-0.8.3

Fetching: filesize-0.0.4.gem (100%)

Successfully installed filesize-0.0.4

Fetching: clamp-0.6.5.gem (100%)

Successfully installed clamp-0.6.5

Fetching: stud-0.0.22.gem (100%)

Successfully installed stud-0.0.22

Fetching: ffi-1.9.10-java.gem (100%)

Successfully installed ffi-1.9.10-java

Fetching: spoon-0.0.4.gem (100%)

Successfully installed spoon-0.0.4

Fetching: method_source-0.8.2.gem (100%)

Successfully installed method_source-0.8.2

Fetching: slop-3.6.0.gem (100%)

Successfully installed slop-3.6.0

Fetching: coderay-1.1.0.gem (100%)

Successfully installed coderay-1.1.0

Fetching: pry-0.10.3-java.gem (100%)

Successfully installed pry-0.10.3-java

Fetching: cabin-0.7.2.gem (100%)

Successfully installed cabin-0.7.2

Fetching: logstash-core-2.0.1.snapshot1-java.gem (100%)

Successfully installed logstash-core-2.0.1.snapshot1-java

Fetching: logstash-codec-plain-2.0.2.gem (100%)

Successfully installed logstash-codec-plain-2.0.2

Fetching: multi_json-1.11.2.gem (100%)

Successfully installed multi_json-1.11.2

Fetching: zabbix_protocol-0.1.4.gem (100%)

Successfully installed zabbix_protocol-0.1.4

Fetching: logstash-output-zabbix-2.0.0.gem (100%)

Successfully installed logstash-output-zabbix-2.0.0

24 gems installed

[root@nginx bin]# 

[root@nginx bin]# ./plugin list

logstash-codec-collectd

logstash-codec-dots

logstash-codec-edn

logstash-codec-edn_lines

logstash-codec-es_bulk

logstash-codec-fluent

logstash-codec-graphite

logstash-codec-json

logstash-codec-json_lines

logstash-codec-line

logstash-codec-msgpack

logstash-codec-multiline

logstash-codec-netflow

logstash-codec-oldlogstashjson

logstash-codec-plain

logstash-codec-rubydebug

logstash-filter-anonymize

logstash-filter-checksum

logstash-filter-clone

logstash-filter-csv

logstash-filter-date

logstash-filter-dns

logstash-filter-drop

logstash-filter-fingerprint

logstash-filter-geoip

logstash-filter-grok

logstash-filter-json

logstash-filter-kv

logstash-filter-metrics

logstash-filter-multiline

logstash-filter-mutate

logstash-filter-ruby

logstash-filter-sleep

logstash-filter-split

logstash-filter-syslog_pri

logstash-filter-throttle

logstash-filter-urldecode

logstash-filter-useragent

logstash-filter-uuid

logstash-filter-xml

logstash-input-beats

logstash-input-couchdb_changes

logstash-input-elasticsearch

logstash-input-eventlog

logstash-input-exec

logstash-input-file

logstash-input-ganglia

logstash-input-gelf

logstash-input-generator

logstash-input-graphite

logstash-input-heartbeat

logstash-input-http

logstash-input-imap

logstash-input-irc

logstash-input-kafka

logstash-input-log4j

logstash-input-lumberjack

logstash-input-pipe

logstash-input-rabbitmq

logstash-input-redis

logstash-input-s3

logstash-input-snmptrap

logstash-input-sqs

logstash-input-stdin

logstash-input-syslog

logstash-input-tcp

logstash-input-twitter

logstash-input-udp

logstash-input-unix

logstash-input-xmpp

logstash-input-zeromq

logstash-output-cloudwatch

logstash-output-csv

logstash-output-elasticsearch

logstash-output-email

logstash-output-exec

logstash-output-file

logstash-output-ganglia

logstash-output-gelf

logstash-output-graphite

logstash-output-hipchat

logstash-output-http

logstash-output-irc

logstash-output-juggernaut

logstash-output-kafka

logstash-output-lumberjack

logstash-output-nagios

logstash-output-nagios_nsca

logstash-output-null

logstash-output-opentsdb

logstash-output-pagerduty

logstash-output-pipe

logstash-output-rabbitmq

logstash-output-redis

logstash-output-s3

logstash-output-sns

logstash-output-sqs

logstash-output-statsd

logstash-output-stdout

logstash-output-tcp

logstash-output-udp

logstash-output-xmpp

logstash-output-zeromq

logstash-patterns-core


本文出自 “易贞奇界” 博客,谢绝转载!

elk 收藏

标签:elk 收藏

原文地址:http://caozhong.blog.51cto.com/361840/1748456

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!