Solved

Can I change the log file maxlength?

Posted on 2008-10-02
1
184 Views
Last Modified: 2010-05-18
Hello,

The access.log is rewrited (I think this) and I can read it every day. Can I change the squid parameters to increase the log size?

What can I do?

Best regards
0
Comment
Question by:silviall
1 Comment
 
LVL 45

Accepted Solution

by:
sunnycoder earned 250 total points
ID: 22623004
Hello silviall,

Log file rotation is handled by logrotate
http://linux.die.net/man/8/logrotate

Edit the /etc/logrotate.conf file to manage the rotation of your log files e.g.

"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
weekly
}

Regards,
sunnycoder
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question