Logs are stored on the Cloudomation server. There is a log expiry logic that can be customized. Generally, we recommend deleting older logs from the Cloudomation server. A log archiving logic can be implemented to write logs to a log server or an archive.