My sensu-client.log files are growing to ridiculous sizes like 1.7 GB plus and it is taking up a lot of unnecessary space.
Does anyone know how to set an option to limit the file size or have an additional suggestion to control this.
Thanks
My sensu-client.log files are growing to ridiculous sizes like 1.7 GB plus and it is taking up a lot of unnecessary space.
Does anyone know how to set an option to limit the file size or have an additional suggestion to control this.
Thanks
You can configure sensu log level by setting LOG_LEVEL
in /etc/default/sensu
to either debug
, info
, warn
or error
.
You will need to restart the sensu-client (service sensu-client restart
) after making the change.
In addition to @KrzysztofSzarek's answer, putting LOG_LEVEL=warn
in /etc/default/sensu
, you may also specify the log level on the command line when starting sensu-server/sensu-api/sensu-client, e.g. -L warn
See the corresponding code on Github.