Logstash solr_http plugin not working

Logstash version 5.4.0
Tried to comment out line 65 in solr_http as suggested in another post - However, that workaround is not helping with logstash v5.4.0. (Solr6 & Logstash 5: timestamp error)
Getting the below error.
logstash.outputs.solrhttp - An error occurred while indexing: wrong constant name LogStash::TimestampField

Hi Divya,

Could you please share the solution if you were able to find one.

thanks in advance.

The plugin works once the all the timestamp fields are converted into string type.

convert => { "datetime" => "string" }

It turned out that the Ruby client for Solr -> rsolr latest version is having an issue..
Hence we manually installed previous version of rsolr (v1.1.2 is the last/lastest working version) and modified the solt_http logstash output plugin file to point to the older version.

export PATH=/usr/share/logstash/vendor/jruby/bin:$PATH
/usr/share/logstash/vendor/jruby/bin/gem install rsolr -v 1.1.2

sed -i 's|require "rsolr"|require "/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/gems/rsolr-1.1.2/lib/rsolr"|' /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-solr_http-3.0.1/lib/logstash/outputs/solr_http.rb

2 Likes

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