我只是在课堂上为我的项目尝试这个,所以我没有麋鹿堆栈的先验知识
这是我运行.conf文件时得到的结果
Elasticsearch - v8.10.2
Kibana - v8.10.2
Logstash-v8.10.0
我的.conf文件
input {
http {
host => "0.0.0.0" # Listen on all network interfaces
port => 9200 # Port to listen on (you can change this as needed)
}
}
filter {
json {
source => "message"
}
}
output {
elasticsearch {
hosts => ["https://localhost:9200"] # Replace with your Elasticsearch server's address
index => "testdb" # Replace with your Elasticsearch index name
ssl => true
cacert => "C:\udownloads\elasticsearch-8.10.2\config\certs\http_ca.crt"
ssl_certificate_verification => false
user => "{MYUSER}"
password => "{MYPASSWORD}"
}
}
编辑:My command Line Prompt
非常感谢您的帮助…
我还没有尝试过任何东西,因为我找不到关于此错误的任何东西
1条答案
按热度按时间j0pj023g1#
所以,问题是你设置了一个http输入,试图监听端口9200上的所有接口,但这个端口已经被elasticsearch使用了。要解决这个问题,只需将http输入侦听的端口更改为不会与其他运行的应用程序冲突的端口: