# Gc.log elasticsearch

**URL:** <https://discuss.elastic.co/t/gc-log-elasticsearch/202215>\
**Category:** Elasticsearch\
**Created:** [October 3, 2019, 4:58pm UTC](https://discuss.elastic.co/t/gc-log-elasticsearch/202215 "2019-10-03T16:58:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebeaoliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thebeaoliveira/32/53314_2.png) [@thebeaoliveira](https://discuss.elastic.co/u/thebeaoliveira)\
**Post date:** [October 3, 2019, 4:58pm UTC](https://discuss.elastic.co/t/gc-log-elasticsearch/202215/1 "2019-10-03T16:58:25Z")

</div>

Hello, I have a question.

I need some more disk space and I saw that there are a lot of gc.log logs in the var/ log / elasticsearch directory

Can I delete these gc.log files manually?

If I delete, will I have a problem?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [October 11, 2019, 10:25am UTC](https://discuss.elastic.co/t/gc-log-elasticsearch/202215/2 "2019-10-11T10:25:09Z")

</div>

Hi,

garbage collections logs allow you to analyze the behavior of the garbage collector of the Java virtual machine so if you don't need them for this purpose, it is safe to delete them. Please see also our [docs about the configuration of GC logging](https://www.elastic.co/guide/en/elasticsearch/reference/current/gc-logging.html).

Daniel

---

<div class="post-metadata">

**Author:** ![thebeaoliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thebeaoliveira/32/53314_2.png) [@thebeaoliveira](https://discuss.elastic.co/u/thebeaoliveira)\
**Post date:** [October 14, 2019, 11:59am UTC](https://discuss.elastic.co/t/gc-log-elasticsearch/202215/3 "2019-10-14T11:59:32Z")

</div>

Ok, thanks!

---

<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:** [November 11, 2019, 11:59am UTC](https://discuss.elastic.co/t/gc-log-elasticsearch/202215/4 "2019-11-11T11:59:34Z")

</div>

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