您的位置:首页 > 其它

Logstash安装-源码

2016-07-30 10:49 225 查看
Logstash下载有点麻烦,由于国内到elk官网速度很慢,下载过程中容易中断。所以,可以通过有断点续传的工具(迅雷)进行下载好,再进行安装使用。系统环境:
[root@test
~]#cat/etc/issue

CentOS
release6.7(Final)

Kernel\ron
an\m


[root@test
~]#

安装基础环境
#
yuminstallepel-release-y

#yuminstalljava-1.8.0-openjdk.x86_64-y

#yuminstallunzip-y

将下载好的包传到测试机里
[root@test
opt]#ll

总用量143200

-rw-r--r--.
1rootroot275520077月142016
elasticsearch-2.3.4.zip

-rw-r--r--.
1rootroot333218727月142016
kibana-4.5.2-linux-x64.tar.gz

-rw-r--r--.
1rootroot857571627月142016
logstash-2.3.4.zip

[root@test
opt]#

安装Logstash
[root@test
opt]#unziplogstash-2.3.4.zip

[root@test
opt]#lllogstash-2.3.4

总用量156

drwxr-xr-x.
2rootroot40964月1822:29bin

-rw-rw-r--.
1rootroot1049367月72016
CHANGELOG.md

-rw-rw-r--.
1rootroot22497月72016CONTRIBUTORS

-rw-rw-r--.
1rootroot38857月72016Gemfile

-rw-rw-r--.
1rootroot217737月72016Gemfile.jruby-1.9.lock

drwxr-xr-x.
4rootroot40964月1822:29lib

-rw-rw-r--.
1rootroot5897月72016LICENSE

-rw-rw-r--.
1rootroot1497月72016NOTICE.TXT

drwxr-xr-x.
4rootroot40964月1822:30vendor

[root@test
opt]#

简单验证Logstash
[root@test
opt]#./logstash-2.3.4/bin/logstash-e'input{
stdin{}}output{stdout{}}'

Settings:
Defaultpipelineworkers:1

Pipelinemain
started

Hello
World!

2016-04-18T14:33:16.570Z
0.0.0.0HelloWorld!

^CSIGINT
received.Shuttingdowntheagent.{:level=>:warn}

stopping
pipeline{:id=>"main"}

Received
shutdownsignal,butpipelineisstillwaitingforin-flightevents

tobe
processed.Sendinganother^CwillforcequitLogstash,butthismaycause

dataloss.
{:level=>:warn}


Pipelinemain
hasbeenshutdown

[root@test
opt]#


本文出自“cexpert”博客,请务必保留此出处http://cexpert.blog.51cto.com/5251990/1831973
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: