[英]logstash not starting up in windows 10 pro - ELK stack
I am new to ELK stack. 我是ELK Stack的新手。 I have installed ELK stack in Windows.
我已经在Windows中安装了ELK堆栈。 The Elastic Search and kibana works great.
Elastic Search和kibana效果很好。 But when i started logstash, it shows the following error.
但是,当我启动logstash时,它显示以下错误。
When i started the logstash: 当我启动logstash时:
C:\Program Files\logstash-6.7.0\logstash-6.7.0\bin>logstash.bat
Picked up _JAVA_OPTIONS: -Xmx1024M
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class Files\logstash-6.7.0\logstash-6.7.0\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;C:\Program
Caused by: java.lang.ClassNotFoundException: Files\logstash-6/7/0\logstash-6/7/0\logstash-core\lib\jars\animal-sniffer-annotations-1/14/jar;C:\Program
When i tried to pass data via logstash: 当我尝试通过Logstash传递数据时:
C:\Program Files\logstash-6.7.0\logstash-6.7.0\bin>logstash -f logstash_apps.config
Picked up _JAVA_OPTIONS: -Xmx1024M
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class Files\logstash-6.7.0\logstash-6.7.0\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;C:\Program
Caused by: java.lang.ClassNotFoundException: Files\logstash-6/7/0\logstash-6/7/0\logstash-core\lib\jars\animal-sniffer-annotations-1/14/jar;C:\Program
I searched the missing file animal-sniffer-annotations-1.14.jar
in the logstash directory. 我在logstash目录中搜索了丢失的文件
animal-sniffer-annotations-1.14.jar
。 It was there in the bin folder. 它在bin文件夹中。 I tried searching stackoverflow and google but can't find a proper solution.
我尝试搜索stackoverflow和google,但找不到合适的解决方案。 Anyone give me some solutions to solve the problem.
有人给我一些解决方案。
` `
It seems that the problem is being caused by the space in the directory name, as the log shows, it is not looking in C:\\Program Files
, but in Files\\
. 似乎问题是由目录名称中的空格引起的,如日志所示,它不是在
C:\\Program Files
,而是在Files\\
。
Error: Could not find or load main class Files\logstash-6.7.0\logstash-6.7.0\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar
Move your Logstash installation to a directory without spaces in the name. 将Logstash安装移动到名称中没有空格的目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.