logstash 1.1.0 Betas do not work in Windows

Description

With logstash.conf as follows :

input {
file {
type => "log4j"

path => [ "C:/NewCommServer/logs/commserver.log", "C:/NewCommServer/logs/commserver.log.*" ]
}

}

output {

  1. Emit events to stdout for easy debugging of what is going through

  2. logstash.
    stdout { }

  1. You can have multiple outputs. All events generally to all outputs.

  2. Output events to elasticsearch
    elasticsearch {

  3. Setting 'embedded' will run a real elasticsearch server inside logstash.

  4. This option below saves you from having to run a separate process just

  5. for ElasticSearch, so you can get started quicker!
    embedded => true
    }
    }

Running the command line :

C:\NewCommServer\logger>java -jar logstash-1.1.0beta7-monolithic.jar agent -f logstash.conf – web --backend elasticsearch://127.0.0.1/?local

On Windows 2008 R2 SP2, and :

C:\NewCommServer\logger>java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

C:\NewCommServer\logger>java -jar logstash-1.1.0beta7-monolithic.jar agent -f logstash.conf – web --backend elasticsearch://127.0.0.1/?local

and logging files available and present on disk with data being written into them I get the following ruby issue ...

C:\NewCommServer\logger>java -jar logstash-1.1.0beta7-monolithic.jar agent -f lo
gstash.conf – web --backend elasticsearch://127.0.0.1/?local
log4j:WARN No appenders could be found for logger (org.elasticsearch.node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.jar!/gems/rack-1.3.4
/lib/rack/backports/uri/common_192.rb:53 warning: already initialized constant WFKV_
Listening on 0.0.0.0:9292
2011-12-06 10:16:12.583:INFO::jetty-7.x.y-SNAPSHOT
2011-12-06 10:16:12.614:INFO::started o.e.j.s.ServletContextHandler{/,null}
2011-12-06 10:16:12.614:INFO::Started SelectChannelConnector[Delete this]@0.0.0.0:9292
NotImplementedError: readpartial only works with Nio based handlers
read_nonblock at org/jruby/RubyIO.java:2507
_read_file at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/tail.rb:117
loop at org/jruby/RubyKernel.java:1420
_read_file at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/tail.rb:115
subscribe at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/tail.rb:56
each at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/watch.rb:52
each at org/jruby/RubyArray.java:1612
each at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/watch.rb:49
subscribe at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/watch.rb:101
loop at org/jruby/RubyKernel.java:1420
subscribe at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/watch.rb:100
subscribe at file:C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.j
ar!/gems/filewatch-0.3.0/lib/filewatch/tail.rb:48
run at file:/C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.
jar!/logstash/inputs/file.rb:68
run_input at file:/C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.
jar!/logstash/agent.rb:649
start_input at file:/C:/NewCommServer/logger/logstash-1.1.0beta7-monolithic.
jar!/logstash/agent.rb:340
Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (Syst
emExit) readpartial only works with Nio based handlers
at org.jruby.RubyThread.join(org/jruby/RubyThread.java:509)
at LogStash::Agent.wait(file:/C:/NewCommServer/logger/logstash-1.1.0beta
7-monolithic.jar!/logstash/agent.rb:330)
at logstash.runner.main(logstash/runner.rb:40)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612)
at logstash.runner.main(logstash/runner.rb:40)
at logstash.runner.(root)(logstash/runner.rb:108)

The server continues to run but does not retrieve anything from the tailed files to populate queries I make to elasticsearch.

Gliffy Diagrams

Activity

Show:

Jordan Sissel February 3, 2012 at 10:03 PM

This is a dup of https://logstash.jira.com/browse/LOGSTASH-351

It'll be fixed in the next release.

IlyaA January 24, 2012 at 7:59 PM

yes, there were a lot of messages, but nothing when i restarted JBOSS or manually fill the log file. It's working fine (i can see a lot debug messages) when input is stdin. file is not working no matter what i tried.
Thanks
Ilya

Duplicate

Details

Assignee

Reporter

Fix versions

Affects versions

Created January 24, 2012 at 7:26 PM
Updated April 19, 2013 at 8:19 PM
Resolved February 3, 2012 at 10:03 PM