gpt4 book ai didi

spring-boot - 麋鹿 : One or more required cgroup files or directories not found:/proc/self/cgroup

转载 作者:行者123 更新时间:2023-12-02 23:15:02 39 4
gpt4 key购买 nike

我已经配置了如下的logstash配置来读取spring boot生成的日志以推送到 Elasticsearch ,但是即使logstash成功启动也没有创建索引,

配置文件:

input {
file {
path => "C:\workspace\app\logback\applogs.log"
codec => "json"
type => "logback"
}
}

output {
if [type]=="logback" {
elasticsearch {
hosts => [ "localhost:9200" ]
index => "logback-test"
}
}
}

enter image description here

提前致谢!

最佳答案

对于 windows,您应该将路径中的字符从“\”更改为“/”,特别是 windows 10。因此,您可以像下面这样重写路径:

 file {
path => "C:/workspace/app/logback/applogs.log" // not like "C:\workspace\app\logback\applogs.log"
codec => "json"
type => "logback"
}

关于spring-boot - 麋鹿 : One or more required cgroup files or directories not found:/proc/self/cgroup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56375134/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com