Logstash not working with multiple files wildcard path

安稳与你 提交于 2019-12-12 10:49:22

问题


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 {

  }
}

回答1:


I was able to resolve this issue by replacing the backslash with slash.

C:/logs/app*.log



回答2:


Just in case someone needs it, when using wildcard (*) with logstash in windows operating system, use forward slash (/) instead of back slash (\).

Following is the detail of the issue https://github.com/cityindex-attic/logsearch/issues/100



来源:https://stackoverflow.com/questions/34658335/logstash-not-working-with-multiple-files-wildcard-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!