一、修改bin/logstash
vim /app//logstash-6.7.0/bin/logstash
export JAVA_CMD="/app/jdk1.8.0_11/bin" #改为自己服务器JDK位置
export JAVA_HOME="/app/jdk1.8.0_11/" #改为自己服务器JDK位置
二、重新启动
nohup /app/logstash-6.7.0/bin/logstash -t -f /app1/uflow/uflowct/logs/logstash.conf &
三、单机版配置文件
[root@CTC-CaaS-Master01 config]# egrep -v "#|^$" elasticsearch.yml
cluster.name: my-es
path.data: /data/elasticsearch-5.6.9/data/
path.logs: /data/elasticsearch-5.6.9/logs/
bootstrap.memory_lock: false
network.host: 192.168.166.4
http.port: 9200