# Elasticsearch takes long time to update simple index

**URL:** <https://discuss.elastic.co/t/elasticsearch-takes-long-time-to-update-simple-index/210104>\
**Category:** Elasticsearch\
**Created:** [December 2, 2019, 5:03am UTC](https://discuss.elastic.co/t/elasticsearch-takes-long-time-to-update-simple-index/210104 "2019-12-02T05:03:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [December 2, 2019, 5:03am UTC](https://discuss.elastic.co/t/elasticsearch-takes-long-time-to-update-simple-index/210104/1 "2019-12-02T05:03:49Z")

</div>

I have installed ES and Logstash 7.2.0 in 2 servers and I tried pushing a simple text file from Logstash to ES. The Logstash seems to send the data quickly, however, the ES takes about 5 mins (everytime) to update this data in its index.

ES yml:

```auto
cluster.name: myes
node.name: elk04
bootstrap.memory_lock: true
network.host: 110.13.7.64
http.port: 9200
cluster.initial_master_nodes: ["elk04"]

```

Logstash conf:

```auto
input {
        file {
        path => "/etc/logstash/conf.d/mytest.txt"
        start_position => "beginning"
        sincedb_path => "/dev/null"
        }
        }
        output {
           elasticsearch {
               hosts => ["<esIP>:9200"]
               index => "text"
               doc_as_upsert =>true}
               stdout { codec => rubydebug }
        }

```

the contents of the text file is just 4 lines for testing:

```auto
this is a test text
for logstash updation
adding another line
this is to check updates

```

Please help me out with this.

---

<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:** [December 30, 2019, 5:03am UTC](https://discuss.elastic.co/t/elasticsearch-takes-long-time-to-update-simple-index/210104/2 "2019-12-30T05:03:52Z")

</div>

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