groupadd elsearch
useradd elsearch -g elsearch
vi elasticsearch.yml
su elsearch
:
:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.url: "http://ip:9200"
kibana.index: ".kibana"
logstash
input {
file {
start_position => beginning
}
}
filter {
}
output {
elasticsearch {
hosts => "ip:9200"
}
}
来源:博客园
作者:lazy_cxy
链接:https://www.cnblogs.com/lazycxy/p/11422216.html