Sensu log files grow to enormous size

My sensu-client.log files grow to ridiculous sizes like 1.7GB plus and it takes up a lot of extra space.

Does anyone know how to set a parameter to limit the file size or have an additional suggestion for managing this.

thank

+3


source to share


2 answers


You can adjust the level of the log setting LOG_LEVEL

to /etc/default/sensu

on debug

, info

, warn

or error

.



After making the changes, you need to restart sensu-client ( service sensu-client restart

).

+4


source


In addition to @ KrzysztofSzarek's answer, by putting LOG_LEVEL=warn

in /etc/default/sensu

, you can also specify the log level on the command line when running sensu-server / sensu-api / sensu-client for example.-L warn



See the related code on Github .

+1


source







All Articles