function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
admin dudeadmin dude 

Max size of a log file

Hi,
What's the maximum size of a log file, and how many events can it contain?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Admin,

If you are asking about debug logs.

Each debug log must be 20 MB or smaller. Debug logs that are larger than 20 MB are reduced in size by removing older log lines, such as log lines for earlier System.debug statements

Please find the article (https://help.salesforce.com/s/articleView?id=sf.code_debug_log.htm&type=5) for the same.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,
admin dudeadmin dude
Hi Sai,
I use REST API to fetch EventLogFiles records, so I'm referring to the log file in that object.
What its max size and how many logs can one log file contain?