E:\logstash-6.2.4\bin目录下新建logstash.conf
input { stdin { } } output { stdout { codec=> rubydebug } elasticsearch { hosts => localhost } }
E:\logstash-6.2.4\bin目录下新建run.bat
logstash -f logstash.conf
修改logstash.bat
%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" org.logstash.Logstash %*
原文地址:https://www.cnblogs.com/tonggc1668/p/9129226.html
时间: 2024-10-06 06:48:13