rotate log unable te delete old files

The name of the pictureThe name of the pictureThe name of the pictureClash 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 ?







share|improve this question




















  • 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










  • 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














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 ?







share|improve this question




















  • 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










  • 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












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 ?







share|improve this question












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 ?









share|improve this question











share|improve this question




share|improve this question










asked Oct 22 '17 at 8:36









BOUKANDOURA Mhamed

8619




8619











  • 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










  • 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
















  • 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










  • 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















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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)