6

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 {

  }
}
Amir Katz
  • 1,027
  • 1
  • 10
  • 24

2 Answers2

13

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

C:/logs/app*.log
Amir Katz
  • 1,027
  • 1
  • 10
  • 24
5

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

Nilesh Rajani
  • 538
  • 6
  • 16