Skip to content
Contents
GuidesOpenWrt

Check where OpenWrt writes logs before changing retention

Distinguish RAM, overlay, and external drives using mount, df -h, and log configuration.

Distinguish RAM, overlay, and external drives using mount, df -h, and log configuration. Frequent disk writes often stem from logging, monitoring databases, downloads, and containers. After identifying the sources of writes, determine which events should be persisted.

Store logs and large writes separately

Temporary fault logs can be stored in a RAM circular buffer. Logs that need to be retained should be sent to a controlled collection endpoint or an external storage device. Configure size, rotation, access, and disk failure behaviors to prevent empty mounted directories from being written back to the system disk.

First locate the actual write location of the logs

Read local logs and application configurations, and check actual usage of /tmp, /overlay, and external disks. Select a warning entry to verify rotation or remote reception.

Monitor daily log growth, failure-related spikes, and post-reboot traceability. Critical states such as firmware and configuration are managed separately using verified backup procedures.

Local troubleshooting windows are still retained. Alerts should be generated when external logging fails to prevent accidental writes that could fill the flash memory.

Identify the filesystem backing /tmp and inspect the log configuration. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Identify the filesystem backing /tmp and inspect the log configuration. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Identify the filesystem backing /tmp and inspect the log configuration. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments