Reading rolling log files on Win 7 doesn't work


(Dario) #1

I have installed Logstash 2.1.1 on my Win 7 machine and set it up to read a specific folder for log files.

But, it appeared I could set it up only to look for a specific file, not to check for the whole folder or some files based on my criteria.

This is example of my config file:

input {
file {
path => "d:\data_generation\mylog*.log"
start_position => "beginning"
}
}
output {
stdout { codec => rubydebug }
}

The only option that worked was with a full filename that was in a PATH parameter.
I'm a newbie in using Logstash, so I missed something, but it seems to me it is a bug.


(Magnus B├Ąck) #2

Try using forward slashes instead of backslashes in the filename pattern.


(Dario) #3

yes, it worked now..

tnx


(system) #4