# Turning off Elasticsearch's logrotation (2.2)

**URL:** <https://discuss.elastic.co/t/turning-off-elasticsearchs-logrotation-2-2/164216>\
**Category:** Elasticsearch\
**Created:** [January 15, 2019, 12:56am UTC](https://discuss.elastic.co/t/turning-off-elasticsearchs-logrotation-2-2/164216 "2019-01-15T00:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chikorita](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@chikorita](https://discuss.elastic.co/u/chikorita)\
**Post date:** [January 15, 2019, 12:56am UTC](https://discuss.elastic.co/t/turning-off-elasticsearchs-logrotation-2-2/164216/1 "2019-01-15T00:56:41Z")

</div>

Hello,

I have a cluster running ES 2.2. I am trying to disable the automatic log rotating that log4j is doing with dailyRollingFile without restarting nodes in my cluster (so without editing logging.yml).

I tried to set the appender's file type to null but I got an error.

```auto
$ curl -XPUT http://localhost:9200/_cluster/settings -d '{ "transient": {"logger.appender.file.type": null}}'

{"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: no settings to update;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: no settings to update;"},"status":400}

```

Is it possible to set fields like this to null? Or perhaps, is there an easier way to stop the files from rotating?

Thank you!

---

<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:** [February 12, 2019, 12:56am UTC](https://discuss.elastic.co/t/turning-off-elasticsearchs-logrotation-2-2/164216/2 "2019-02-12T00:56:47Z")

</div>

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