logstash安装
来源:互联网 发布:f125型护卫舰 知乎 编辑:程序博客网 时间:2024/05/16 18:13
安装java
yum install java-1.6.0-openjdk* -y
yum install java-1.6.0-openjdk* -y
安装elasticsearch
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.11.tar.gz
tar -zxvf elasticsearch-0.19.11.tar.gz
mv elasticsearch-0.19.11 /usr/local/elasticsearch
/usr/local/elasticsearch/bin/elasticsearch -f
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.11.tar.gz
tar -zxvf elasticsearch-0.19.11.tar.gz
mv elasticsearch-0.19.11 /usr/local/elasticsearch
/usr/local/elasticsearch/bin/elasticsearch -f
curl http://192.168.14.117:9200/_flush
安装插件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
http://192.168.14.117:9200/_plugin/head/
yum install git -y
git clone git://github.com/Aconex/elasticsearch-head.git
/usr/local/elasticsearch/bin/plugin -install Aconex/elasticsearch-head
重启es
http://192.168.14.117:9200/_plugin/head/
安装:logstatsh
wget https://logstash.objects.dreamhost.com/release/logstash-1.1.5-monolithic.jar
测试:
wget http://logstash.net/docs/1.1.0/tutorials/10-minute-walkthrough/apache-parse.conf
修改如下:
output {
stdout {
debug => true
}
elasticsearch { embedded => true } //开启es支持
}
wget http://logstash.net/docs/1.1.0/tutorials/10-minute-walkthrough/apache-parse.conf
修改如下:
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 https://github.com/jordansissel/grok/tarball/master -O grok.tar.gz
tar zxf grok.tar.gz
cd jordansissel-grok-*
make grok
make install
ldconfig
cd ..
运行:
java -jar logstash-*-monolithic.jar agent -f apache-parse.conf -- web --backend elasticsearch://localhost/
java -jar logstash-*-monolithic.jar agent -f apache-parse.conf -- web --backend elasticsearch://localhost/
http://192.168.14.117:9292/search
tail -f /var/log/httpd/access_log|nc 127.0.0.1 3333
转自:http://blog.chinaunix.net/uid-405749-id-3414824.html
- logstash安装
- 安装logstash
- 安装logstash
- logstash安装
- 安装Logstash
- logstash安装
- 安装Logstash
- logstash安装
- Logstash官方文档中文版-安装Logstash
- logstash安装和logstash-input-jdbc插件
- logstash安装和使用
- ELK(二)安装logstash
- logstash 安装zabbix插件
- windows下安装logstash
- logstash安装文档
- elasticsearch, logstash 安装
- logstash安装与使用
- Logstash安装使用
- Linux下的文件类型及文件后缀名详解
- Clang 3.4 文档(updating)
- 每天一个linux命令:cat (concatenate)
- JavaScript常用方法记录单
- C# 注释换行
- logstash安装
- java面向对象
- 简单dp
- LeetCode Median of Two Sorted Arrays两数列的中间数
- C++的多态的几种形式
- MFC中文档与视图(二)
- 李进良:我对4G招标模式中国电信回应的回应与期望
- 第三方从UC账号免激活异步登录DX 3.1 方法
- Varchar和NVarchar的理解