# Logstash solr\_http plugin not working

**URL:** <https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217>\
**Category:** Logstash\
**Created:** [May 18, 2017, 9:32am UTC](https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217 "2017-05-18T09:32:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divya\_Prakash](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Divya\_Prakash](https://discuss.elastic.co/u/Divya_Prakash)\
**Post date:** [May 18, 2017, 9:32am UTC](https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217/1 "2017-05-18T09:32:54Z")

</div>

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](https://discuss.elastic.co/t/solr6-logstash-5-timestamp-error/67223))  
Getting the below error.  
logstash.outputs.solrhttp - An error occurred while indexing: wrong constant name LogStash::TimestampField

---

<div class="post-metadata">

**Author:** ![data\_sniper](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@data\_sniper](https://discuss.elastic.co/u/data_sniper)\
**Post date:** [June 13, 2017, 7:07am UTC](https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217/2 "2017-06-13T07:07:35Z")

</div>

Hi Divya,

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

thanks in advance.

---

<div class="post-metadata">

**Author:** ![data\_sniper](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@data\_sniper](https://discuss.elastic.co/u/data_sniper)\
**Post date:** [June 15, 2017, 4:51pm UTC](https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217/3 "2017-06-15T16:51:37Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Divya\_Prakash](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Divya\_Prakash](https://discuss.elastic.co/u/Divya_Prakash)\
**Post date:** [June 29, 2017, 9:06am UTC](https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217/4 "2017-06-29T09:06:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 27, 2017, 9:06am UTC](https://discuss.elastic.co/t/logstash-solr-http-plugin-not-working/86217/5 "2017-07-27T09:06:43Z")

</div>

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