Hi, I have already read man page of journalctl and made some experiments with the command. All the efforts made me more confused. So, I would like to beg some help here. My system is Ubuntu 20.04.3 LTS. My procedures: 1. Create a .conf file for systemd-jounald.service with following content: 2. Restart systemd-jounald.service 3. Check the status of journald and ensure it is writing log into memory. 4. Comment out the Storage option 5. Restart journald 6. check status again and you will see that flush already been done Now that the operation of flush can be done automatically when you switch from Storage=volatile to #Storage=volatile, why do we still need journalctl --flush? I believe there are some reasons for the existence of this switch for journalctl. Hopefully, I can find some help here. Thank you! |