Got error to send bulk of actions: no method 'id' for arguments

I'm trying to read from oracle DB and load to EL Search using Log Stash. Here is the output file

output {
elasticsearch {
index =>"planogramviews"
document_type => "planogramview"
document_id => "%{planogram_id}"
host => "10.117.144.227"

    }

}

I'm getting the below exception.Any clues?

Got error to send bulk of actions: no method 'id' for arguments (org.jruby.ext.bigdecimal.RubyBigDecimal) on Java::OrgElasticsearchActionIndex::IndexRequest {:level=>:error}
Failed to flush outgoing items {:outgoing_count=>9, :exception=>#<NameError: no method 'id' for arguments (org.jruby.ext.bigdecimal.RubyBigDecimal) on Java::OrgElasticsearchActionIndex::IndexRequest>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-1.0.5-java/lib/logstash/outputs/elasticsearch/protocol.rb:234:in build_request'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-1.0.5-java/lib/logstash/outputs/elasticsearch/protocol.rb:223:inbulk'", "org/jruby/RubyArray.java:1613:in each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-1.0.5-java/lib/logstash/outputs/elasticsearch/protocol.rb:222:inbulk'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-1.0.5-java/lib/logstash/outputs/elasticsearch.rb:519:in submit'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-1.0.5-java/lib/logstash/outputs/elasticsearch.rb:543:inflush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.20/lib/stud/buffer.rb:219:in buffer_flush'", "org/jruby/RubyHash.java:1341:ineach'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.20/lib/stud/buffer.rb:216:in buffer_flush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-1.0.5-java/lib/logstash/outputs/elasticsearch.rb:577:inteardown'", "org/jruby/RubyArray.java:1613:in each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.3-java/lib/logstash/pipeline.rb:248:inoutputworker'", "org/jruby/RubyArray.java:1613:in each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.3-java/lib/logstash/pipeline.rb:247:inoutputworker'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.3-java/lib/logstash/pipeline.rb:166:in `start_outputs'"], :level=>:warn}

Hello Suneesh,

From the included stacktrace, I know that you are running a really old version of Logstash (1.5.3), Can you try your configuration with the latest version of Logstash which is 5.3?

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