Turning off Elasticsearch's logrotation (2.2)

(Dania) #1


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.

$ 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!

(system) closed #2

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