# Log rotation policy

**URL:** <https://discuss.elastic.co/t/log-rotation-policy/256683>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [November 25, 2020, 3:51pm UTC](https://discuss.elastic.co/t/log-rotation-policy/256683 "2020-11-25T15:51:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![knagasri](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@knagasri](https://discuss.elastic.co/u/knagasri)\
**Post date:** [November 25, 2020, 3:51pm UTC](https://discuss.elastic.co/t/log-rotation-policy/256683/1 "2020-11-25T15:51:41Z")

</div>

I have deployed elasticsearch cluster in GCP with one master and data-ingest nodes.  
What is the default log rotation policy. How frequently logs are rotated?  
How much logs will be collected in pvc?

---

<div class="post-metadata">

**Author:** ![knagasri](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@knagasri](https://discuss.elastic.co/u/knagasri)\
**Post date:** [November 30, 2020, 1:42pm UTC](https://discuss.elastic.co/t/log-rotation-policy/256683/2 "2020-11-30T13:42:41Z")

</div>

Is there anyone to answer?

---

<div class="post-metadata">

**Author:** ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)\
**Post date:** [November 30, 2020, 2:00pm UTC](https://discuss.elastic.co/t/log-rotation-policy/256683/3 "2020-11-30T14:00:16Z")

</div>

Hi,

It seems to be a duplicated question, see [ES operator log rotation](https://discuss.elastic.co/t/es-operator-log-rotation/256494/4)

By default logs are not stored in a persistent volume, they are written to `stdout` and `stderr`. You can use [Filebeat](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat-quickstart.html) to store them in an Elasticsearch cluster.

---

<div class="post-metadata">

**Author:** ![knagasri](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@knagasri](https://discuss.elastic.co/u/knagasri)\
**Post date:** [December 1, 2020, 3:17pm UTC](https://discuss.elastic.co/t/log-rotation-policy/256683/4 "2020-12-01T15:17:39Z")

</div>

Thank you @michael.morello

---

<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 4, 2022, 8:18am UTC](https://discuss.elastic.co/t/log-rotation-policy/256683/5 "2022-11-04T08:18:26Z")

</div>


