Forums

Custom configuration for logrotate

Is it possible to make a custom configuration for logrotate? My access log file start to be way go big and it is not rotated. Thanks

I'm afraid not. But logs should rotate overnight once they reach a certain size? How big is yours? When did it last rotate?

Same here, mine is 675.2kb already.

You can empty your log files with

echo "" > [path to the log file]

Thank but I have a 27.5MB log file and I don't want to empty it, I just want it to rotate once the it hit a certain size.

Ok. There's something weird going on. Our logrotate config should be rotating logs once a day if they're over 100k. I had a look at the files in your log dir and the big one should have been rotated ages ago. Give me some time to investigate.

@glenn 100k as in 100kb?

Yup. There's something very weird going on. For some users logs, logrotate complains about files already existing when it tries to rotate and for others, it doesn't. I haven't worked out what the relevant difference is, yet.

We worked out what was causing the logrotation to fail and we have fixed it. Your logs should be rotating correctly again.

Ok, thank you