Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have fixed size limit in logrotation 1M. The script run on every hours even though its rotating less than 1Mb files. I dont know what i have done wrong. Below is my configuration parameters.

              rotate 25
              olddir /opt/PostgreSQL/8.4/data/pg_log/test

Please can anyone help me out in this problem?

Lot of Thanks in advance.

share|improve this question

It should be size 1M without equal sign.

share|improve this answer
Even I tried that then also its rotating the less than 1mb files..!!! – sathish Jun 20 '11 at 12:43
This is wrong. With and without the equals sign are both valid and equivalent syntax. See, for example, this man page which includes both syntaxes. I am using the equals sign in a logrotate file for Apache in production and it works just fine. – Mark Amery Oct 23 '14 at 9:10

You may check the logging parameters in your PostgreSQL config, see: PostgreSQL Error Reporting and Logging (e.g. log_rotation_size).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.