# Clear cache not working properly

**URL:** <https://discuss.elastic.co/t/clear-cache-not-working-properly/98444>\
**Category:** Elasticsearch\
**Created:** [August 26, 2017, 7:31am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444 "2017-08-26T07:31:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hack3rcon](https://discuss.elastic.co/u/hack3rcon)\
**Post date:** [August 26, 2017, 7:31am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444/1 "2017-08-26T07:31:51Z")

</div>

Hello.  
I did below command my ELK box for clear cache:

```auto
# curl -XDELETE 'http://localhost:9200/_all'
{"acknowledged":true}
```

but when I restart my server then cache back:

```auto
# curl -XGET 'http://localhost:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open .kibana tPXxYJTKSnqcIcII24wi5g 1 1 1 0 3.1kb 3.1kb
yellow open index_name-2017.08.26 UaZplhq-TjiZYAKRMiaIeg 5 1 3 0 18.9kb 18.9kb
yellow open beat-2017.08.26 3WoFB9mlTqeSh8Puud-rEw 5 1 3 0 18.8kb 18.8kb
```

I have not any active server that send logs to my ELK but I don't know why cache back!!!

Any idea to solve it?

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 26, 2017, 9:17am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444/2 "2017-08-26T09:17:01Z")

</div>

Those are not caches, they are indices.

The Kibana one will be created as soon as you start Kibana. The others would be because you are sending data to Elasticsearch someone.

---

<div class="post-metadata">

**Author:** ![hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hack3rcon](https://discuss.elastic.co/u/hack3rcon)\
**Post date:** [August 26, 2017, 9:48am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444/3 "2017-08-26T09:48:25Z")

</div>

As I said, All server are OFF and I have not data stream!!!  
How can I clear "Kibana" indices?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 26, 2017, 9:49am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444/4 "2017-08-26T09:49:28Z")

</div>

There is something still sending to Elasticsearch, it will not create these indices by itself.

---

<div class="post-metadata">

**Author:** ![hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hack3rcon](https://discuss.elastic.co/u/hack3rcon)\
**Post date:** [August 26, 2017, 9:58am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444/5 "2017-08-26T09:58:37Z")

</div>

OK, Let me to show you that I have not any data stream:

```auto
# tcpdump -n -s 0 -i enp4s0 -X tcp port 9200 and host 172.30.10.17
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp4s0, link-type EN10MB (Ethernet), capture size 65535 bytes
```

```auto
# curl -XGET 'http://localhost:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open beat-2017.08.26 bb342tKBRreMvEcwenki0A 5 1 3 0 26.3kb 26.3kb
yellow open .kibana lenrD9HkRDOe7OcmCtNWeg 1 1 1 0 3.1kb 3.1kb
yellow open index_name-2017.08.26 ZMxwlq0iRMeJRnKG9KhQ3g 5 1 3 0 18.9kb 18.9kb
```

and:

 ![beat](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c8b8fa43ad3af2eaacda950156e10b57631cbbb8.png)

Why no result?

---

<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:** [September 23, 2017, 9:58am UTC](https://discuss.elastic.co/t/clear-cache-not-working-properly/98444/6 "2017-09-23T09:58:45Z")

</div>

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