From 5e295047592727bf161cda857f537bb87bb553fe Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Mon, 6 Apr 2015 17:05:37 -0700 Subject: [PATCH] add warning for embedded => true Closes #99. --- lib/logstash/outputs/elasticsearch.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/logstash/outputs/elasticsearch.rb b/lib/logstash/outputs/elasticsearch.rb index 9836a0417..44f4964d2 100644 --- a/lib/logstash/outputs/elasticsearch.rb +++ b/lib/logstash/outputs/elasticsearch.rb @@ -299,6 +299,7 @@ def register if @embedded raise(LogStash::ConfigurationError, "The 'embedded => true' setting is only valid for the elasticsearch output under JRuby. You are running #{RUBY_DESCRIPTION}") unless LogStash::Environment.jruby? + @logger.warn("The 'embedded => true' setting is enabled. This is not recommended for production use!!!") # LogStash::Environment.load_elasticsearch_jars! # Default @host with embedded to localhost. This should help avoid