signal_usage_error at C:/.../Vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:103
find_option at C:/.../Vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/option/parsing.rb:62
parse_options at C:/.../Vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/option/parsing.rb:18
parse at C:/.../Vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:52
There's something fishy here. How are you starting Logstash? Are you sure your Logstash installation is intact and consistent? Did you upgrade recently? Your configuration can't possibly won't work with LS 2.2 since the elasticsearch output's host option was renamed to hosts.
C:\NotBackedUp\logstash-2.2.3\logstash-2.2.3\bin>logstash --conftest logstash.conf
io/console not supported; tty will not be manipulated
Clamp::UsageError: Unrecognised option '--conftest'
signal_usage_error at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:103
find_option at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/option/parsing.rb:62
parse_options at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/option/parsing.rb:28
parse at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:52
run at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.3-java/lib/logstash/runner.rb:79
call at org/jruby/RubyProc.java:281
run at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.3-java/lib/logstash/runner.rb:95
call at org/jruby/RubyProc.java:281
initialize at C:/NotBackedUp/logstash-2.2.3/logstash-2.2.3/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/task.rb:24
C:\NotBackedUp\logstash-2.2.3\logstash-2.2.3\bin>logstash --conftest logstash.conf
io/console not supported; tty will not be manipulated
Clamp::UsageError: Unrecognised option '--conftest'
Thanks for correcting my silly mistake and for your patience.
I am able to pass through config test now.
I am facing an issue at logstash execution .... perhaps I may be giving incorrect "hosts"
The error is as follows
C:\NotBackedUp\logstash-2.2.3\logstash-2.2.3\bin>logstash -f logstash.conf
io/console not supported; tty will not be manipulated
Settings: Default pipeline workers: 4
e[31mError: The setting port in plugin elasticsearch is obsolete and is no longer available. Please use the 'hosts' setting instead. Hosts entries can be in 'host:port' format. If you have any questions about this, you are invited to visit https://discuss.elastic.co/c/logstash and ask. {:level=>:error}e[0m
If you look in the documentation there is an example of how to configure hosts to specify both host and port. As per the same documentation there is no ports option. 9200 is also the default port and can therefore usually be omitted.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.