Unable to output to elastic cloud


(Sjaak) #1

Hi,

Logstash is trowing the following error when trying to output to elastic cloud.

I've tried using the elastic user account and password as well to avoid any permission issues.

var hash = window.location.hash;
if (hash.length) {
  window.location = hashRoute + hash;
} else {
  window.location = defaultRoute;
}</script>"; line: 1, column: 2]>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/json.rb:17:in `jruby_load'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outpu$
[2018-10-12T17:23:38,085][ERROR][logstash.agent           ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: LogStash::PipelineAction::Create/pipeline_id:ma$
[2018-10-12T17:44:24,768][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[2018-10-12T17:44:24,773][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[2018-10-12T17:44:25,175][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-10-12T17:44:25,384][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"6.1.2"}
[2018-10-12T17:44:25,594][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=>9600}
[2018-10-12T17:44:35,634][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://elasticcloudurl.found.io:9243/]}}
[2018-10-12T17:44:35,644][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://elasticcloudurl.found.io:924$
[2018-10-12T17:44:37,223][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"https://elasticcloudurl.found.io:9243/"}
[2018-10-12T17:44:38,020][ERROR][logstash.pipeline        ] Error registering plugin {:pipeline_id=>"main", :plugin=>"#<LogStash::OutputDelegator:0x1bf8ea4 @namespaced_metric=#<LogStash::Instrument::NamespacedMetric:0x136df42 @metric=#<$
[2018-10-12T17:44:38,025][ERROR][logstash.pipeline        ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<LogStash::Json::ParserError: Unexpected character ('<' (code 60)): expected a valid value (number, String, ar$
 at [Source: (byte[])"<script>var hashRoute = '/app/kibana';
var defaultRoute = '/app/kibana';

var hash = window.location.hash;
if (hash.length) {
  window.location = hashRoute + hash;
} else {
  window.location = defaultRoute;
}</script>"; line: 1, column: 2]>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/json.rb:17:in `jruby_load'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outpu$
[2018-10-12T17:44:38,041][ERROR][logstash.agent           ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: LogStash::PipelineAction::Create/pipeline_id:ma$

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.