# Install Cassandra Driver (Ruby) for Logstash

**URL:** <https://discuss.elastic.co/t/install-cassandra-driver-ruby-for-logstash/63490>\
**Category:** Logstash\
**Created:** [October 20, 2016, 10:00am UTC](https://discuss.elastic.co/t/install-cassandra-driver-ruby-for-logstash/63490 "2016-10-20T10:00:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TWalter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/twalter/32/41239_2.png) [@TWalter](https://discuss.elastic.co/u/TWalter)\
**Post date:** [October 20, 2016, 10:00am UTC](https://discuss.elastic.co/t/install-cassandra-driver-ruby-for-logstash/63490/1 "2016-10-20T10:00:53Z")

</div>

Hello there,

If you want to connect to a cassandra database with the ruby-filter, you can do it the following way.

All you need for this, is the datastax cassandra ruby driver:  
[https://github.com/datastax/ruby-driver](https://github.com/datastax/ruby-driver)

Logstash 2.4.0 works on an embedded jruby1.9 and the driver is compatible for this version,

My plan is to install the driver for the embedded jruby version of Logstash. So i run the following commands:

```
env GEM_HOME=/opt/logstash/vendor/bundle/jruby/1.9 /opt/logstash/vendor/jruby/bin/jruby /opt/logstash/vendor/jruby/bin/gem install cassandra-driver

```

I hope i could help somebody, who wants to do that =)

---

<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 6, 2017, 4:33am UTC](https://discuss.elastic.co/t/install-cassandra-driver-ruby-for-logstash/63490/2 "2017-07-06T04:33:25Z")

</div>


