Logstash can not read *.log


(Chunbo Liao) #1

could some one help to check this issue:

when I run logstash to get data from *.log file (I used nfs3 to map HDFS file to local file). the error logs like as bellow:

[2018-12-03T14:37:14,153][ERROR][filewatch.tailmode.handlers.grow] read_to_eof: general error reading /home/11thone/caselog/logmonster/CAS-188222-B5Z9/MME52/CPPU6/TrHandlerSnapshot4.log {"error"=>"#<SystemCallError: Unknown error (SystemCallError) - /home/11thone/caselog/logmonster/CAS-188222-B5Z9/MME52/CPPU6/TrHandlerSnapshot4.log>", "backtrace"=>["org/jruby/RubyIO.java:2958:in sysread'", "/home/11thone/elk/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:224:infile_read'", "/home/11thone/elk/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:236:in read_extract_lines'", "/home/11thone/elk/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/tail_mode/handlers/base.rb:52:inblock in controlled_read'"]}

BR
Liao