本帖最后由 i1zhuxian 于 2016-2-23 11:28 编辑
自己装了个ELK,可以正常访问了,但发现非常消耗CPU
该虚拟机的配置如下:cpu 1 mem 4G disk 100G
系统 centos7.2X64
机器上装的服务如下 :mysql zabbix logstash elasticsearch kibana (目前ELK也就只在这一台机器有安装。)
#########################################################3
配置文件如下:
[Bash shell] 纯文本查看 复制代码 [iyunv@test1 ~]# cat /etc/logstash/conf.d/httpd.conf | grep -v ^#
input {
file {
type => "http.access"
path => "/var/log/httpd/access_log"
}
file {
type => "http.error"
path => "/var/log/httpd/error_log"
}
file {
type => "messages"
path => "/var/log/messages"
}
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "logstash-%{type}-%{+YYYY.MM.dd}"
#document_type => "%{type}"
}
}
[Bash shell] 纯文本查看 复制代码 [iyunv@test1 ~]# cat /etc/elasticsearch/elasticsearch.yml | grep -v ^#
path.data: /data/elasticsearch
network.host: localhost
[AppleScript] 纯文本查看 复制代码 [iyunv@test1 ~]# cat /opt/kibana/config/kibana.yml | grep -v ^# | grep -v ^$
elasticsearch.url: "http://localhost:9200"
##################################################
想问下这个要怎么样才能降低CPU消耗。不然的话根本没法用啊 这个才是只处理一台机器的log 就耗了这么多的cpu……

|