# Logs disappeared after running applications for a few hours - ELK stack

**URL:** <https://discuss.elastic.co/t/logs-disappeared-after-running-applications-for-a-few-hours-elk-stack/271050>\
**Category:** Kibana\
**Created:** [April 23, 2021, 7:55am UTC](https://discuss.elastic.co/t/logs-disappeared-after-running-applications-for-a-few-hours-elk-stack/271050 "2021-04-23T07:55:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![District](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@District](https://discuss.elastic.co/u/District)\
**Post date:** [April 23, 2021, 7:55am UTC](https://discuss.elastic.co/t/logs-disappeared-after-running-applications-for-a-few-hours-elk-stack/271050/1 "2021-04-23T07:55:48Z")

</div>

Hi, we are using ELK stack for monitoring our applications. However, it's been quite weird to us that logs kept disappearing after a few hours in kibana.

The pattern was like:  
Deployed applications -\> logs appeared in kibana -\> a few hours -\> logs disappeared in kibana-\> deployed applications -\> logs appeared in kibana -\> logs disappeared after a few hours ......

Everytime the logs disappeared in Kibana, we could see errors in kibana.log:

`{"type":"log","@timestamp":"2021-04-23T11:53:47Z","tags":["error","elasticsearch","admin"],"pid":9236,"message":"Request error, retrying\nPOST http://localhost:9200/_xpack/monitoring/_bulk?system_id=kibana&system_api_version=6&interval=10000ms => socket hang up"}`

We only have one elasticsearch node in cluster and each index has default 5 primary shards.

Do you have idea what could go wrong perhaps? or could you guide us where to debug this issue?

 ![Screenshot 2021-04-23 at 09.38.25](https://us1.discourse-cdn.com/elastic/original/3X/3/2/322aaa595f7b1c25b550bf04a5e6d7ba019a47ce.png)

---

<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:** [April 27, 2021, 1:50am UTC](https://discuss.elastic.co/t/logs-disappeared-after-running-applications-for-a-few-hours-elk-stack/271050/2 "2021-04-27T01:50:39Z")

</div>

Welcome to our community! 😃

What version are you running?

> [@District](#):
>
> logs disappeared after a few hours

Can you elaborate a little more on this part? How do you know it's disappearing?

---

<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:** [May 25, 2021, 1:50am UTC](https://discuss.elastic.co/t/logs-disappeared-after-running-applications-for-a-few-hours-elk-stack/271050/3 "2021-05-25T01:50:42Z")

</div>

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