Logstash File input plugin not working Windows 10

Hi,

I am using Logstash File input plugin for debugging purposes. Currently I migrated to latest Logstash version 7.4.2. But the existing logstash configuration unable to read file from the disk. I am using Windows 10. My configuration input section is as follows.

input {
  file {
    path => ["C:\Users\PSUDHEE\Desktop\Elastic_Stack_7.4.1\logstash-7.4.1\LogData\sample.log"]
    start_position => "beginning"
   sincedb_path => "NUL"
  }
}

I have tried the configuration without sincedb_path configuration also, but no change. The same configuration is worked with Logstash 6.4.2 and 6.6.0 perfectly. I also tried with adding data to the sample.log file. nothing happened.

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

2 Likes

Thanks @Badger, its working now.

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