- Check for free disk space on the affected node with the the df -h command.
- Run the following command to check filesystem usage (sorted by directory):
du -h -d 2 -x / 2>@1 | sort -rh | head
- Run the following command to shrink the systemd journal:
journalctl --vacuum-size=50M
- Run the following command to find log files within containers without accessing containers sorting by largest:
find /var/lib/docker/containers -name \*.log* -ls | sort -r -n -k7
- Ensure that the endpoints for the fluentd and telegraf containers are are updated correctly in their respective configuration files.
- A command similar to the following can be used to find and remove large log files in bulk from the current working directory:
for i in $(ls -1 | grep -i "\.log$"); do rm $i; done;