rotate log unable te delete old files

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
With apache i decide to manage log with logrotate i wanted to keep logs for 60 days, older than that must be deleted, so i added the following :
/var/log/httpd/*
true
endscript
Now i still have files from may, how can i solve this ?
centos logs logrotate
add a comment |Â
up vote
0
down vote
favorite
With apache i decide to manage log with logrotate i wanted to keep logs for 60 days, older than that must be deleted, so i added the following :
/var/log/httpd/*
true
endscript
Now i still have files from may, how can i solve this ?
centos logs logrotate
Just noting there's a typo: the i innotifemptyi. Perhaps nothing gets executed anymore?
â A.B
Oct 22 '17 at 11:01
Very good observation thank you, but the same problem remains.
â BOUKANDOURA Mhamed
Oct 22 '17 at 13:15
sizeis mutually exclusive withdaily; this configuration would only ever rotate when logs are larger than 10 MB. Did you meanmaxsizeinstead?
â Benjamin W.
Nov 1 '17 at 5:52
I usedsizeto ensure logs will never pass 10M, but i guess this will not influence the deleting of old logs.
â BOUKANDOURA Mhamed
Nov 2 '17 at 9:06
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
With apache i decide to manage log with logrotate i wanted to keep logs for 60 days, older than that must be deleted, so i added the following :
/var/log/httpd/*
true
endscript
Now i still have files from may, how can i solve this ?
centos logs logrotate
With apache i decide to manage log with logrotate i wanted to keep logs for 60 days, older than that must be deleted, so i added the following :
/var/log/httpd/*
true
endscript
Now i still have files from may, how can i solve this ?
centos logs logrotate
asked Oct 22 '17 at 8:36
BOUKANDOURA Mhamed
8619
8619
Just noting there's a typo: the i innotifemptyi. Perhaps nothing gets executed anymore?
â A.B
Oct 22 '17 at 11:01
Very good observation thank you, but the same problem remains.
â BOUKANDOURA Mhamed
Oct 22 '17 at 13:15
sizeis mutually exclusive withdaily; this configuration would only ever rotate when logs are larger than 10 MB. Did you meanmaxsizeinstead?
â Benjamin W.
Nov 1 '17 at 5:52
I usedsizeto ensure logs will never pass 10M, but i guess this will not influence the deleting of old logs.
â BOUKANDOURA Mhamed
Nov 2 '17 at 9:06
add a comment |Â
Just noting there's a typo: the i innotifemptyi. Perhaps nothing gets executed anymore?
â A.B
Oct 22 '17 at 11:01
Very good observation thank you, but the same problem remains.
â BOUKANDOURA Mhamed
Oct 22 '17 at 13:15
sizeis mutually exclusive withdaily; this configuration would only ever rotate when logs are larger than 10 MB. Did you meanmaxsizeinstead?
â Benjamin W.
Nov 1 '17 at 5:52
I usedsizeto ensure logs will never pass 10M, but i guess this will not influence the deleting of old logs.
â BOUKANDOURA Mhamed
Nov 2 '17 at 9:06
Just noting there's a typo: the i in
notifemptyi . Perhaps nothing gets executed anymore?â A.B
Oct 22 '17 at 11:01
Just noting there's a typo: the i in
notifemptyi . Perhaps nothing gets executed anymore?â A.B
Oct 22 '17 at 11:01
Very good observation thank you, but the same problem remains.
â BOUKANDOURA Mhamed
Oct 22 '17 at 13:15
Very good observation thank you, but the same problem remains.
â BOUKANDOURA Mhamed
Oct 22 '17 at 13:15
size is mutually exclusive with daily; this configuration would only ever rotate when logs are larger than 10 MB. Did you mean maxsize instead?â Benjamin W.
Nov 1 '17 at 5:52
size is mutually exclusive with daily; this configuration would only ever rotate when logs are larger than 10 MB. Did you mean maxsize instead?â Benjamin W.
Nov 1 '17 at 5:52
I used
size to ensure logs will never pass 10M, but i guess this will not influence the deleting of old logs.â BOUKANDOURA Mhamed
Nov 2 '17 at 9:06
I used
size to ensure logs will never pass 10M, but i guess this will not influence the deleting of old logs.â BOUKANDOURA Mhamed
Nov 2 '17 at 9:06
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399669%2frotate-log-unable-te-delete-old-files%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Just noting there's a typo: the i in
notifemptyi. Perhaps nothing gets executed anymore?â A.B
Oct 22 '17 at 11:01
Very good observation thank you, but the same problem remains.
â BOUKANDOURA Mhamed
Oct 22 '17 at 13:15
sizeis mutually exclusive withdaily; this configuration would only ever rotate when logs are larger than 10 MB. Did you meanmaxsizeinstead?â Benjamin W.
Nov 1 '17 at 5:52
I used
sizeto ensure logs will never pass 10M, but i guess this will not influence the deleting of old logs.â BOUKANDOURA Mhamed
Nov 2 '17 at 9:06