Disable logs on files

does anyone know how to disable logs saved in /var /log/genieacs/.

To save space and processing.

You don’t say which version of GenieACS you are using, nor how you are starting the processes.

We still use v1.1 and so we redirect the console logs to /var/log/genieacs via >>.

Logs are incredibly powerful to figure out what went wrong. I suggest you leave them enabled and instead setup log rotation.

1 Like

Sorry, I use version 1.2. The logs are really good, so I would like to disable and enable them only when necessary.

image

I deleted it a short time ago, as I have many devices they grow very fast.

200k isn’t much data :smiley:. I do very extensive logging in our environment and our cwmp log file gets to about 180m per day, but compresses down to 12m.

$ gzip --list /var/log/genieacs/genieacs-cwmp.log-20200602.gz
     compressed        uncompressed  ratio uncompressed_name
       12231048           180150236  93.2% /var/log/genieacs/genieacs-cwmp.log-20200602

image

I had just erased it, it was 161mb, now it’s 425mb.

I don’t use 1.2 so you will have to dig in, but you can disable access logging. look for a param like cwmp_access_log_file

1 Like

I did it, but I didn’t know if it was the right way.