Logstash 7x not reading from log file, same working for 6x versions

Here is my conf file details :

input {
file {

path => ["C:\allLogs.log"]

}
}

output {
elasticsearch {
hosts => ["localhost:9200"]
index => "u_logs"
}
stdout { codec => rubydebug }
}

It works for 6.2.4 version, and data gets indexed into elasticsearch
but not working for any 7x versions.

It also doesn't even validate whether file exist in the specified directory.

Do not use backslash in the path option of a file input. Use forward slash.

I think backslash stopped working as part of the javafication changes that went into 6.4.0. Quoting the backslash (i.e. using "C:\\allLogs.log") might also work.

Thanks .. it worked with "/" in the path.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.