|
Chris B. |
Have a cron job occasionally (maybe daily) check for generated log files over a certain size (e.g. 100mb) and rename those logs to an archived naming scheme. This could also possibly be an configurable option in the Logs tab in the single site options in the GridPane UI.
Activity Newest / Oldest
Chris B.
I noticed the GP-cron logs archive with the naming scheme like "gp-cron.log.1.gz", but I haven't seen the same behavior with other logs, so I'm seeing some rather huge "debug.log" and "7g.log" files for example. I run this bash script daily via cron to archive old site logs: gist.github.com/columbian-chris/6d7f6a32074db9a789bc88726a32ed47