# Uploading the same file to elastic via logstash is way slower than uploading it via the Kibana UI

**URL:** <https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061>\
**Category:** Logstash\
**Created:** [January 29, 2019, 12:07am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061 "2019-01-29T00:07:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhmtasos](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dhmtasos](https://discuss.elastic.co/u/dhmtasos)\
**Post date:** [January 29, 2019, 12:07am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061/1 "2019-01-29T00:07:08Z")

</div>

I have a 10MB file in size with 500000 lines. Each line has this text:

`text_entry,$i`

where $i = line number

My logstash.conf file looks like this:

```
input { file {
	path => "C:/Users/anasdima/Workspace/data-tests/10MB-data.csv"
	mode => "read"
} }
}
output {
  elasticsearch { hosts => ["localhost:9200"] }
}

```

This takes 9 minutes to finish, which to me means that something is not right.

On the other hand, when I upload `10MB-data.csv` from Kibana, it takes a couple of seconds.

What is making such a huge difference?

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [January 29, 2019, 8:24am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061/2 "2019-01-29T08:24:36Z")

</div>

Hi,

How and where in kibana do you upload the file? Can you elaborate on that a bit more please.

What version are you using for logstash and elasticsearch. What hardware specs do you have (cpu, mem, disk type).

Paul.

---

<div class="post-metadata">

**Author:** ![dhmtasos](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dhmtasos](https://discuss.elastic.co/u/dhmtasos)\
**Post date:** [January 29, 2019, 8:49am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061/3 "2019-01-29T08:49:51Z")

</div>

I am using this ui from Kibana to upload the file:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/1/71497658c00fb81c553ca7811dfb87842d1ef60d.png)

I am using 6.5.4 Elastic, 6.5.4 Kibana and 6.5.4 logstash. 64 bit versions, running on Windows 10 Pro.

My CPU is i5-6600, RAM 16GB, Hard Drive (not SSD)

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [January 29, 2019, 9:44am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061/4 "2019-01-29T09:44:11Z")

</div>

When you use the this interface (which I cannot find in my kibana btw) does it end up in a index somewhere?

---

<div class="post-metadata">

**Author:** ![dhmtasos](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dhmtasos](https://discuss.elastic.co/u/dhmtasos)\
**Post date:** [January 29, 2019, 9:52am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061/5 "2019-01-29T09:52:43Z")

</div>

I navigate like this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/4/14765f4925fb3f3a2d82433b18c1435c08e6fe18.png)

yes it ends up in an index

---

<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:** [February 26, 2019, 9:52am UTC](https://discuss.elastic.co/t/uploading-the-same-file-to-elastic-via-logstash-is-way-slower-than-uploading-it-via-the-kibana-ui/166061/6 "2019-02-26T09:52:47Z")

</div>

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