Logstash安装-源码
2016-07-30 10:49
225 查看
Logstash下载有点麻烦,由于国内到elk官网速度很慢,下载过程中容易中断。所以,可以通过有断点续传的工具(迅雷)进行下载好,再进行安装使用。系统环境:
安装基础环境
将下载好的包传到测试机里
安装Logstash
简单验证Logstash
本文出自“cexpert”博客,请务必保留此出处http://cexpert.blog.51cto.com/5251990/1831973
[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
相关文章推荐
- Linux 文件权限管理 之 RWX
- mysql 通过bin-log恢复数据方法详解
- 反射+注解或去数据库查询语句
- 程序员的观察力
- PyGobject(四十二)布局容器之ButtonBox
- 网络游戏知识汇总
- linux 常用命令
- JDBC-Ststement/PreparedStatemnent/CallableStatement
- 偷笑偷笑偷笑这就是有病的表现
- CR95HF操作命令介绍
- G - Fire![bfs]
- popwindows
- Catch That Cow
- HDU-2012-素数判定【打表】
- achartengine图标框架的使用心得
- 将博客搬至CSDN
- 论 <%@taglib prefix="s" uri="/struts-tags" %> 的重要性
- jquery 遍历表格,需要表格中每个td的内容
- 细菌(disease) (位运算)(状态压缩)
- jsp-九大内置对象