Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7430492
  • 博文数量: 1758
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16252
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1758)

文章存档

2024年(4)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2012-11-20 14:18:38

系统centos5.8
 
安装java
yum install java-1.6.0-openjdk* -y
安装elasticsearch
wget
tar -zxvf elasticsearch-0.19.11.tar.gz
mv elasticsearch-0.19.11 /usr/local/elasticsearch
/usr/local/elasticsearch/bin/elasticsearch -f
curl
安装插件elasticsearch-head:
yum install git -y
git clone git://github.com/Aconex/elasticsearch-head.git
/usr/local/elasticsearch/bin/plugin -install Aconex/elasticsearch-head
重启es

安装:logstatsh
wget
测试:
wget
修改如下:
output {
  stdout {
    debug => true
  }
  elasticsearch { embedded => true }   //开启es支持
}

安装grok:
yum install -y gcc gperf make libevent-devel pcre-devel tokyocabinet-devel
wget --no-check-certificate -O grok.tar.gz
tar zxf grok.tar.gz
cd jordansissel-grok-*
make grok
make install
ldconfig
cd ..
运行:
#java -jar logstash-1.1.5-monolithic.jar agent -f apache-parse.conf --web --backend elasticsearch:///?local
java -jar logstash-*-monolithic.jar agent -f apache-parse.conf  -- web --backend elasticsearch://localhost/

tail -f /var/log/httpd/access_log|nc 127.0.0.1 3333
 
阅读(4391) | 评论(0) | 转发(0) |
0

上一篇:corona

下一篇:go写的gopher

给主人留下些什么吧!~~