# Logstash reads only 10 rows

**URL:** <https://discuss.elastic.co/t/logstash-reads-only-10-rows/213338>\
**Category:** Logstash\
**Created:** [December 30, 2019, 11:43am UTC](https://discuss.elastic.co/t/logstash-reads-only-10-rows/213338 "2019-12-30T11:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lubos\_Marek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lubos_marek/32/59043_2.png) [@Lubos\_Marek](https://discuss.elastic.co/u/Lubos_Marek)\
**Post date:** [December 30, 2019, 11:43am UTC](https://discuss.elastic.co/t/logstash-reads-only-10-rows/213338/1 "2019-12-30T11:43:58Z")

</div>

Hello,  
I am trying to read csv file with logstash but logstash reads only firs 10 rows. Where could be a problem?

Structure of my CSV file:  
500;message 1  
200;message 2  
500;message 1  
200;message 2  
500;message 1  
200;message 2  
500;message 1  
200;message 2  
500;message 1  
200;message 2  
500;message 1  
200;message 2  
500;message 1  
200;message 2

my logstash.conf

```
input {
  file {
    path => ["/usr/share/logstash/data1/*"]
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
}

filter {
  csv {
    separator => ";"
    columns => ["statuscode", "message"]
  }
}

output {
  elasticsearch {
    hosts => ["http://host.docker.internal:9200"]
    index => "mylog"
  }
}

```

When I open [http://localhost:9200/mylog/\_search?pretty](http://localhost:9200/mylog/_search?pretty) I see only first 10 rows of my file.

---

<div class="post-metadata">

**Author:** ![andres-perez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andres-perez/32/136461_2.png) [@andres-perez](https://discuss.elastic.co/u/andres-perez)\
**Post date:** [December 30, 2019, 2:24pm UTC](https://discuss.elastic.co/t/logstash-reads-only-10-rows/213338/2 "2019-12-30T14:24:31Z")

</div>

Thanks for your detailed input, configuration and query commands used to get your desired output. It makes it really easier to troubleshoot 🙂

> [@Lubos\_Marek](#):
>
> When I open [http://localhost:9200/mylog/\_search?pretty](http://localhost:9200/mylog/_search?pretty) I see only first 10 rows of my file.

Your issue is related to the **elasticsearch query** : if the output "size" is not specified, **the default is 10 results**.

It is better explained in this response: [Get query is showing only 10 results while searching for a particular data - #2 by ogtool](https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187/2)

---

<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 27, 2020, 2:24pm UTC](https://discuss.elastic.co/t/logstash-reads-only-10-rows/213338/3 "2020-01-27T14:24:37Z")

</div>

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