标签:相关 结合 log4 定义 color hosts ffffff RoCE data
官方介绍:https://www.elastic.co/cn/products/elasticsearch1)安装JDK
2)安装elasticsearch
ELasticsearch的官方站点:https://artifacts.elastic.co/downloads/elasticsearch/
下面几个是最主要的配置文件路径:
/etc/elasticsearch/elasticsearch.yml # els的配置文件
/etc/elasticsearch/jvm.options # JVM相关的配置,内存大小等等
/etc/elasticsearch/log4j2.properties # 日志系统定义
/var/lib/elasticsearch # 数据的默认存放位置
若要其他IP访问,需修改elasticsearch.yml,如下图:
启动Elasticsearch
systemctl enable elasticsearch.service
systemctl start elasticsearch
或
即把logstash拿到的数据存入elasticsearch
input {
redis {
host => "xxx.xxx.xxx.xxx"
port => 1234
password => "12345678"
db => 1
data_type => "channel"
key => "logstash"
}
}
filter {
}
output {
elasticsearch {
hosts => ["127.0.0.1:9200"]
}
stdout{codec=>rubydebug}
}
标签:相关 结合 log4 定义 color hosts ffffff RoCE data
原文地址:http://blog.51cto.com/10541556/2313819