Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logstash not working with multiple files wildcard path

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 {

  }
}
like image 865
Amir Katz Avatar asked Jan 07 '16 14:01

Amir Katz


2 Answers

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

C:/logs/app*.log
like image 146
Amir Katz Avatar answered Sep 16 '22 11:09

Amir Katz


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

like image 34
Nilesh Rajani Avatar answered Sep 18 '22 11:09

Nilesh Rajani