# I have deleted Elastic searcg logs files and now logs are not coming up

**URL:** <https://discuss.elastic.co/t/i-have-deleted-elastic-searcg-logs-files-and-now-logs-are-not-coming-up/239148>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [June 29, 2020, 3:52pm UTC](https://discuss.elastic.co/t/i-have-deleted-elastic-searcg-logs-files-and-now-logs-are-not-coming-up/239148 "2020-06-29T15:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Nouman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_nouman/32/45644_2.png) [@Ali\_Nouman](https://discuss.elastic.co/u/Ali_Nouman)\
**Post date:** [June 29, 2020, 3:52pm UTC](https://discuss.elastic.co/t/i-have-deleted-elastic-searcg-logs-files-and-now-logs-are-not-coming-up/239148/1 "2020-06-29T15:52:20Z")

</div>

Hi Guys,  
Using ubutnu 16.04,elastic search 6 and inside the /var/log/elasticsearch, I have run sudo rm \* to clean all the old log files. it's not writing new logs file anymore. It will be great if somebody can give me idea how the new log files will start writing up again. Many thanks!

---

<div class="post-metadata">

**Author:** ![Ali\_Nouman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_nouman/32/45644_2.png) [@Ali\_Nouman](https://discuss.elastic.co/u/Ali_Nouman)\
**Post date:** [June 29, 2020, 4:46pm UTC](https://discuss.elastic.co/t/i-have-deleted-elastic-searcg-logs-files-and-now-logs-are-not-coming-up/239148/2 "2020-06-29T16:46:20Z")

</div>

It's coming up again after restarting the server

---

<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:** [July 27, 2020, 4:46pm UTC](https://discuss.elastic.co/t/i-have-deleted-elastic-searcg-logs-files-and-now-logs-are-not-coming-up/239148/3 "2020-07-27T16:46:30Z")

</div>

Closed on July 27, 2020, 4:46pm UTC

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