You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The web service is running 24x7 and its confident that logs event occurs every day.
Now this is the questions:
On 1 Feb 2024 the service has been offline. the log folder contained logs files from 2 Jan to 31 Jan, which is 30 days-worth of files.
On 1 Apr 2024 the service has been bring online and run up till now. The strange thing is, if I check today (6 Jun 2024) the files of 1 Apr 2024 to 6 May 2024 has been deleted, but the log files before 1 Feb 2024 are left behind.
The log files of 7 May 2024 to 6 Jun 2024 are all here (30 days-worth)
I am confused why the logs before 1 Feb 2024 not being deleted and want to seek some guidance.
[Update]
After testing, the deletion of log files seems to depend to a hidden value of {period} which appears to be 30 days.
Under my setting, Log files older than {maxHistory} + {hidden value} days will not be deleted.
eg.
When maxHistory is set to 3, Log files older than 3+30 days from todays are not deleted.
Change maxHistory to 90, then the range will become 90+30 days.
Since there are no visible configuration found in the document to mention about this,
I assume it cannot be fixed by merely change the setting.
For now, I will just close the discussion as unresolved.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
I have the following appender defined in a springboot RestfulAPI web service:
${HOME_LOG}/LogFile.log
Logback version 1.2.3
The web service is running 24x7 and its confident that logs event occurs every day.
Now this is the questions:
On 1 Feb 2024 the service has been offline. the log folder contained logs files from 2 Jan to 31 Jan, which is 30 days-worth of files.
On 1 Apr 2024 the service has been bring online and run up till now. The strange thing is, if I check today (6 Jun 2024) the files of 1 Apr 2024 to 6 May 2024 has been deleted, but the log files before 1 Feb 2024 are left behind.
The log files of 7 May 2024 to 6 Jun 2024 are all here (30 days-worth)
I am confused why the logs before 1 Feb 2024 not being deleted and want to seek some guidance.
[Update]
After testing, the deletion of log files seems to depend to a hidden value of {period} which appears to be 30 days.
Under my setting, Log files older than {maxHistory} + {hidden value} days will not be deleted.
eg.
When maxHistory is set to 3, Log files older than 3+30 days from todays are not deleted.
Change maxHistory to 90, then the range will become 90+30 days.
Since there are no visible configuration found in the document to mention about this,
I assume it cannot be fixed by merely change the setting.
For now, I will just close the discussion as unresolved.
Beta Was this translation helpful? Give feedback.
All reactions