Log Rotation and Deletion
How long (chronologically) are logs maintained before being deleted? Are there size limits to log retention?
If logs are deleted, can you share which and where logs are checked and deleted please? I am looking to off-load logs prior to deletion and want to know where to insert my code change.
I have a client where I am thinking about installing a Gold but they have a requirement to retain all logs for seven years.
Thanks
-
You should not use any debug logs from the unit for production. They are there for developer use only.
Here is the reason why, these logs are there to help developers find problems, so they are unorganized, ugly, unstructured, and only use is to find bugs. There is no guarantee the log format will be the same or even the log content will be the same between versions. There is no guarantee these logs will be even correct... (as lazy developers sometimes will leave stuff there for absolutely no reason).
We do have a work item to provide some type of structure to logs... but that work item is sort of on a pause, since not many people are asking for them, and to maintain the logs will take too much time.
-
@Andres
You could always write a script to scp out the logs and run it as a cronjob.I’ve got someone writing up an approach to save to “any” cloud provider. I’ll post it shortly.
Better but a bit more complicated would be to use a sshfs client over ssh. Secure shell file system which enables mounting of a remote system and interact with it like it’s a local folder. You can add sshfs mappings to fstab.
-
@Rodrigo check out this post I just made.
https://help.firewalla.com/hc/en-us/community/posts/360049436094-Using-an-Externally-connected-USB-Memory-Stick
Please sign in to leave a comment.
Comments
11 comments