-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
Issue
I am encountering the following error when trying to use the file input to watch /var/log/syslog and /var/log/auth.log
I have run the following on the log files:
setfacl -m u:logstash:r /var/log/{syslog,auth.log}
The following exception stack trace is from /var/log/logstash/logstash.err
NotImplementedError: block device detection unsupported or native support failed to load
blockdev? at org/jruby/RubyFileTest.java:67
device? at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/helper.rb:67
_sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb:230
sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb:203
teardown at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-0.1.9/lib/logstash/inputs/file.rb:151
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/pipeline.rb:203
synchronize at org/jruby/ext/thread/Mutex.java:149
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/pipeline.rb:203
start_input at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/pipeline.rb:171
If I run interactively using
sudo -u logstash /opt/logstash/bin/logstash agent -f /etc/logstash/conf.d/ --verbose
I get the same exception stack trace plus this:
The error reported is:
Bad file descriptor - Bad file descriptor
I have a number of file inputs in the pipeline, but it seems only be this file input that causes a problem. Removing this file input allows it to start fine.
Environment Details
root@logstash1:/# lsb_release -d
Description: Ubuntu 14.04.1 LTS
root@logstash1:/# /opt/logstash/bin/logstash -V
logstash 1.5.0-rc3
root@logstash1:/# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)