Hi,
I have recently installed logstash + kibana + elasticsearch on my laptop.
My laptop hosts a Fedora Linux 21 x86_64
Logstash is version 1.5.4
After configuring logstash and starting it, it was not creating indices in elasticsearch with my initial configuration.
Logstash is not generating any error in its log files.
Searching on this list I found the following topics:
Unfortunatelly they didn't help me fix the issue, so far.
I have configured logstash as below to try to understand why it doesn't seems to read and parse the log files.
Input file:
input {
file {
path => ["/var/log/httpd/access_log"]
exclude => ["*.gz", "*.bz2"]
type => "apache_access"
start_position => beginning
}
}
Filter file:
filter {
if [type] == "apache_access" {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
add_field => {"received_from" => "localhost" }
}
date {
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
}
Output file:
output {
stdout { codec => rubydebug }
}
When starting logstash with --debug I have the following trace.
[root@farsight ~]# /opt/logstash/bin/logstash --debug -f /etc/logstash/conf.d
Match data {:match=>{"message"=>"%{COMBINEDAPACHELOG}"}, :level=>:info, :file=>"logstash/filters/grok.rb", :line=>"259", :method=>"register"}
Grok compile {:field=>"message", :patterns=>["%{COMBINEDAPACHELOG}"], :level=>:info, :file=>"logstash/filters/grok.rb", :line=>"264", :method=>"register"}
regexp: /message {:pattern=>"%{COMBINEDAPACHELOG}", :level=>:debug, :file=>"logstash/filters/grok.rb", :line=>"266", :method=>"register"}
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.5/lib/filewatch/helper.rb:67
_sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/tail.rb:232
sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/tail.rb:205
teardown at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-1.0.1/lib/logstash/inputs/file.rb:157
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-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.4-java/lib/logstash/pipeline.rb:203
start_input at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/pipeline.rb:171
I have 2 questions.
- Why this error is not reported in the logfiles of logstash as it seems quite serious?
- Does anybody have a idea what can cause this problem?
Thank you.