sysutils/logstash leaves me without working file input

Filias Heidt post at filias.name
Tue Jan 13 21:22:12 UTC 2015


Hi Ports,

I installed the latest sysutils/logstash port in a fresh 10.1 jail and tried the following:

# /usr/local/logstash/bin/logstash -f /home/user/src/conf/logstash.conf

which gave the following output:

Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
NotImplementedError: stat.st_dev unsupported or native support failed to load
       dev_major at org/jruby/RubyFileStat.java:190
  _discover_file at /usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:140
            each at org/jruby/RubyArray.java:1613
  _discover_file at /usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:122
           watch at /usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:34
            tail at /usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/tail.rb:58
             run at /usr/local/logstash/lib/logstash/inputs/file.rb:130
            each at org/jruby/RubyArray.java:1613
             run at /usr/local/logstash/lib/logstash/inputs/file.rb:130
     inputworker at /usr/local/logstash/lib/logstash/pipeline.rb:163
     start_input at /usr/local/logstash/lib/logstash/pipeline.rb:157

So it seems, that the file {} input is not working, which seems to be related to this Bug: https://logstash.jira.com/browse/LOGSTASH-1819.
However, unlike mentioned in the Bugreport, the Port is not working for me.

In case its of interest, the logstash.conf looks like the following:

input {
  file {
    path => "/tmp/test.log"
    start_position => beginning
  }
}

filter {
  grok {
    match => { "message" => "%{COMBINEDAPACHELOG}" }
  }
  date {
    match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
  }
}

output {
  elasticsearch {
    host => localhost
  }
  stdout { codec => rubydebug }
}

Am I missing something? Is something wrong with the port? In case, there is: Is there something I can help with to get that resolved?

Thanks,
Filias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150113/35346e0d/attachment.sig>


More information about the freebsd-ports mailing list