Logstash 不适用于多个文件通配符路径
Logstash not working with multiple files wildcard path
Logstash 似乎无法读取带通配符的路径
这是我的配置文件
input {
file {
path => "C:\logs\app*.log"
type => "MyType"
}
}
filter {
}
output {
elasticsearch {
}
}
我通过将反斜杠替换为斜杠解决了这个问题。
C:/logs/app*.log
为了以防万一有人需要它,在 windows 操作系统中使用通配符 (*) 和 logstash 时,请使用正斜杠 (/) 而不是反斜杠 (\)。
问题详情如下
https://github.com/cityindex-attic/logsearch/issues/100
Logstash 似乎无法读取带通配符的路径 这是我的配置文件
input {
file {
path => "C:\logs\app*.log"
type => "MyType"
}
}
filter {
}
output {
elasticsearch {
}
}
我通过将反斜杠替换为斜杠解决了这个问题。
C:/logs/app*.log
为了以防万一有人需要它,在 windows 操作系统中使用通配符 (*) 和 logstash 时,请使用正斜杠 (/) 而不是反斜杠 (\)。
问题详情如下 https://github.com/cityindex-attic/logsearch/issues/100