KIBANA 耗CPU
本帖最后由 i1zhuxian 于 2016-2-23 11:28 编辑自己装了个ELK,可以正常访问了,但发现非常消耗CPU
该虚拟机的配置如下:cpu 1mem 4G disk 100G
系统 centos7.2X64
机器上装的服务如下 :mysql zabbixlogstash elasticsearch kibana (目前ELK也就只在这一台机器有安装。)
#########################################################3
配置文件如下:
# 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}"
}
}
# cat /etc/elasticsearch/elasticsearch.yml | grep -v ^#
path.data:/data/elasticsearch
network.host: localhost
# cat /opt/kibana/config/kibana.yml| grep -v ^# | grep -v ^$
elasticsearch.url: "http://localhost:9200"
##################################################
想问下这个要怎么样才能降低CPU消耗。不然的话根本没法用啊 这个才是只处理一台机器的log 就耗了这么多的cpu……
{:6_456:}
cpu单核啊亲,配置太低了吧 本帖最后由 geniusjoy 于 2016-2-22 18:53 编辑
elk是一套系统,逐个拆分来分析。而且还跑着mysql zabbix。
额 现在cpu消耗正常了。还不清楚什么原因,猜测可能是昨天第一启动,要将之前的日志导进去,数量比较多,现在导入的都是新产生的日志,数量不多,所以消耗降低
页:
[1]