Syslog - Logging buffered command

The logging buffered command configures the size of the local buffer that will contain Syslog messages. This buffer takes up local RAM for storing the logs, so it must be used with caution.

The maximum buffer size is over 2 Gigabytes of space, which can easily cause a device to run out of memory. If large amounts of logs are needed, the use of an external Syslog server is recommended.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/command/esm-cr-book/esm-cr-a1.html#wp4750306920

https://forum.networklessons.com/t/cisco-ios-syslog-messages/1179/46?u=lagapides