How long do you keep log files?

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-04-23T19:37:36Z Indexed on 2010/04/23 19:43 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

I have an application which writes its log files in a special folder. Now I'd like to add a functionality to delete these logs after a defined period of time automatically. But how long should I keep the log files? What are "good" default values (7 or 180 days)? Or do you prefer other criteria (e.g. max. used disk space)?

© Stack Overflow or respective owner

How long do you keep log files?

Posted by Alex on Server Fault See other posts from Server Fault or by Alex
Published on 2010-04-23T19:37:36Z Indexed on 2010/04/23 20:23 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

I have an application which writes its log files in a special folder. Now I'd like to add a functionality to delete these logs after a defined period of time automatically. But how long should I keep the log files? What are "good" default values (7 or 180 days)? Or do you prefer other criteria (e.g. max. used disk space)?

© Server Fault or respective owner

Related posts about best-practices

Related posts about logging