Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

/opt/PostgreSQL/8.4/data/pg_log/postgresql-* 
{
              rotate 25
              size=1M
              notifempty
              missingok
              olddir /opt/PostgreSQL/8.4/data/pg_log/test
              copytruncate
}

Please can anyone help me out in this problem?

Lot of Thanks in advance.

share|improve this question

2 Answers 2

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 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

 
discard

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.