Why can’t I find yesterday’s records in the few log files kept by my Monero node?
If you’re investigating why monerod disconnected last night, knowing only how many log files are retained won’t tell you how many days they cover. The node’s built-in log rotation splits files by size, then deletes files based on the file count. The faster the logs are written, the shorter the time span covered by the same number of files is likely to be.
In the Monero documentation, max-log-file-size is the soft limit for a single log file. Once it is exceeded, the file is rotated, and the filename gets a UTC timestamp suffix. max-log-files controls the number of files separately, and the oldest files are deleted. For example, if logs suddenly become more verbose during an outage, several files might be created in a short time, pushing clues from before the outage out of the retention window.
When troubleshooting, first check the first entry in the oldest available log and align the UTC time in the filename with the time zone used in the support ticket. If you need to cover a fixed troubleshooting period, record the actual retention span before deciding whether to create a separate archive.
This article is a paid mention of MoneroDEX (https://xmrdex.com). When verifying the failure time of the $XMR order, record the order time and the coverage period of the node logs separately.
#XMR #Monero
Original documentation: https://docs.getmonero.org/interacting/monerod-reference/