# Not able to load full data into elastic search by using logstash

**URL:** <https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467>\
**Category:** Logstash\
**Created:** [April 15, 2016, 7:20am UTC](https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467 "2016-04-15T07:20:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [April 15, 2016, 7:20am UTC](https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467/1 "2016-04-15T07:20:06Z")

</div>

Case1:  
I am using log-stash jdbc input to load data from oracle db to elastic search.

But its loading some amount of records only.Its not loading all records.

Example:  
when i run query in sql developer i am getting 1000 records when i load data into elastic search by using same query its giving me 800 records in elastic search index.

Case2:

In my sql query i am getting 9L records.  
But its loading only 2000 records and its not consistent when i run again its giving more then 2000 or less then 2000.

How can i solve these problems.

Thanks in advance.....

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 15, 2016, 7:23am UTC](https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467/2 "2016-04-15T07:23:34Z")

</div>

Have you looked in the Logstash logs for clues? What if you replace the elasticsearch output with a simple file output? Do you get all records from the database then? Divide and conquer.

---

<div class="post-metadata">

**Author:** ![Subhendu\_Gogoi](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@Subhendu\_Gogoi](https://discuss.elastic.co/u/Subhendu_Gogoi)\
**Post date:** [January 6, 2017, 12:34pm UTC](https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467/3 "2017-01-06T12:34:02Z")

</div>

Having the same above mentioned problem. please help!!!!!!!!!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 8, 2017, 4:57pm UTC](https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467/4 "2017-01-08T16:57:11Z")

</div>

@Subhendu_Gogoi, please start a new thread for your problem and include details.

---

<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:29am UTC](https://discuss.elastic.co/t/not-able-to-load-full-data-into-elastic-search-by-using-logstash/47467/5 "2017-07-06T04:29:30Z")

</div>


