Logstash不能使用多个文件通配符路径 [英] Logstash not working with multiple files wildcard path
本文介绍了Logstash不能使用多个文件通配符路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Logstash似乎没有通过通配符读取路径
这里是我的配置文件
Logstash doesn't seem to read path with wildcard here is my config file
input {
file {
path => "C:\logs\app*.log"
type => "MyType"
}
}
filter {
}
output {
elasticsearch {
}
}
推荐答案
我可以通过替换反斜杠来解决这个问题使用斜杠。
I was able to resolve this issue by replacing the backslash with slash.
C:/logs/app*.log
这篇关于Logstash不能使用多个文件通配符路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文