# Logstash error for cassandra database

**URL:** <https://discuss.elastic.co/t/logstash-error-for-cassandra-database/159367>\
**Category:** Logstash\
**Created:** [December 4, 2018, 1:47pm UTC](https://discuss.elastic.co/t/logstash-error-for-cassandra-database/159367 "2018-12-04T13:47:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://discuss.elastic.co/u/vishruti)\
**Post date:** [December 4, 2018, 1:47pm UTC](https://discuss.elastic.co/t/logstash-error-for-cassandra-database/159367/1 "2018-12-04T13:47:51Z")

</div>

![conferror](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee656994501ed8f32d6bf050391c82bc7fc9e7ac.png)  
i am trying to get my cassandra data into the logstash, this is the logstash log file that I am getting after trying to execute logstash.

my simple-out.conf file is as follows  
# cassandra jdbc connection string to our database, thinhsboard  
jdbc\_connection\_string =\> "jdbc:cassandra://localhost:9042/thingsboard"  
# The user we wish to execute our statement as  
jdbc\_user =\> "cassandra"  
jdbc\_password =\> "cassandra"  
# The path to our downloaded jdbc driver  
jdbc\_driver\_library =\> "/home/ubuntu\_admin/cassandra-jdbc-1.2.5.jar"  
# The name of the driver class for Cassandra  
jdbc\_driver\_class =\> "org.apache.cassandra.cql.jdbc.CassandraDriver"  
# our query  
statement =\> "SELECT \* from ts\_kv\_cf"  
clean\_run =\> true  
jdbc\_paging\_enabled =\> "true"  
jdbc\_page\_size =\> "50000"  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "logs"  
document\_type =\> "data"  
}

i have created index\_pattern as logs in kibana. Please let me know if the document\_type can be any name or it is something specific, here in the conf file i have given it as data.  
please help to resolve this issue

---

<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:** [January 1, 2019, 1:47pm UTC](https://discuss.elastic.co/t/logstash-error-for-cassandra-database/159367/2 "2019-01-01T13:47:56Z")

</div>

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