Logs are retained for a max of 30 days in Mongo Atlas

By default Logs are retained for a max of 30 days in Mongo Atlas. Is there any way we can increase this duration, if NO then what are the other options recommended and supported by mongo Atlas.

You can download and archive the logs via the UI or API endpoints

1 Like

Here Question is that I want to retain logs for 12 months for audit purposes. So is it possible in Mongo Atlas, if No what are other recommended options.

Hi @Neeraj_Acharya - welcome to the community :slight_smile:

Question is that I want to retain logs for 12 months for audit purposes. So is it possible in Mongo Atlas, if No what are other recommended options.

It is not possible to retain logs for 12 months in Atlas as Atlas does not retain logs for longer than 30 days.

For cases where you require logs for greater than 30 days, we recommend ingesting MongoDB server logs to an external service. Logs can be retrieved programmatically using the MongoDB Atlas Logs API as Andrew had mentioned. You can store the downloaded logs on your own infrastructure for as long as they are required.

Hope this helps.

Regards,
Jason

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.