Hi there,
I upgraded ELK from 5.5. to 5.6, and logstash received the log, parsed, but didn't write to elasticsearch. From log, it complains ""undefined method `sanitized' ", logstash-output-elasticsearch version is 7.4.0
Please help.
Thanks and Regards,
Fei
[2017-09-14T14:30:11,367][DEBUG][logstash.pipeline ] output received {"event"=>{"@timestamp"=>2017-09-14T18:30:05.000Z, "offset"=>9574607, "apache2"=>{"access"=>{"referrer"=>"-", "response_code"=>"200", "remote_ip"=>"13.115.21.9", "geoip"=>{"timezone"=>"America/Toronto", "ip"=>"13.115.21.9", "latitude"=>43.7334, "continent_code"=>"NA", "city_name"=>"Toronto", "country_name"=>"Canada", "country_code2"=>"CA", "country_code3"=>"CA", "region_name"=>"Ontario", "location"=>{"lon"=>-79.3329, "lat"=>43.7334}, "postal_code"=>"m3c 3n3", "region_code"=>"ON", "longitude"=>-79.3329}, "method"=>"LOCK", "user_name"=>"ykozhem", "http_version"=>"1.1", "body_sent"=>{"bytes"=>"378"}, "url"=>"/csis/trunk/ddl_applications/CSISPROD/Functions/get_future_date.sql", "user_agent"=>{"name"=>"Other", "os_name"=>"Other", "os"=>"Other", "device"=>"Other", "build"=>""}}}, "@version"=>"1", "input_type"=>"log", "beat"=>{"name"=>"jenkins", "hostname"=>"jenkins", "version"=>"5.5.2"}, "host"=>"jenkins", "read_timestamp"=>"2017-09-14T18:30:08.222Z", "source"=>"/var/log/httpd/access_log", "fields"=>{"document_type"=>"svn_access_log"}, "type"=>"log", "tags"=>["beats_input_codec_plain_applied"]}}
[2017-09-14T14:30:14,092][DEBUG][logstash.pipeline ] Pushing flush onto pipeline
[2017-09-14T14:30:15,742][ERROR][logstash.outputs.elasticsearch] Encountered an unexpected error submitting a bulk request! Will retry. {:error_message=>"undefined method sanitized' for #<String:0x3145e6f7>", :class=>"NoMethodError", :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:249:in
safe_bulk'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:222:in safe_bulk'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:119:in
submit'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:87:in retrying_submit'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:38:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:13:in multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:49:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:436:in output_batch'", "org/jruby/RubyHash.java:1342:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:435:in output_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:381:in
worker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:342:in `start_workers'"]}