Question: Housekeeping suggestions?
sanjayws opened this issue · 1 comments
Hi,
Can please suggest where and how we can do housekeeping such as;
- Attachements
- Chats
- Logs
- Others
For older than n days?
Thanks
@sanjayws The software design is that data that resides inside Chatwoot, like Chats, Attachments etc., will be stored indefinitely until manually deleted from the interface. There is no specific action required here. If your use case doesn't require indefinite storage, you can write scripts to clear out data that has passed a specific threshold of days. All Rails database tables have a created_at
record, letting you filter out these records.
For Attachments, it's ideal to use a cloud storage service like S3, azure etc., so that storage is relatively cheap.
By default Chatwoot will be writing logs to stdout, which you can pipe to processing services like sumologic, cloud watch etc. it also lets you control the log rotation configuration when you are writing logs to a file. The storage duration and strategy is dependent on your business model/compliance requirements.
ref: https://github.com/chatwoot/chatwoot/blob/89cfc5bbf3c3da9418250cf75b3b487532298838/.env.example#L107
TLDR: for most of our users, the only housekeeping chore you have to do is to update the instances when a new version is released and make sure to backup your database / storage