<div dir="ltr"><div>I use a service to extract few interesting logs from journal and store seperately by using a service.</div><div><br></div><div>ExecStart=/lib/systemd/systemd-journal-remote  --output=/var/log/critical/critical.journal --getter="journalctl -f PRIORITY=3 -o export"</div><div><br></div><div><br></div><div>this service stores the journal file in  /var/log/critical/critical.journal</div><div><br></div><div>Now after system reboot, I get the following error message. </div><div><br></div><div><font color="#0000ff">systemd-journal-remote[4833]: File /var/log/critical/critical.journal corrupted or uncleanly shut down, renaming and replacing.</font></div><div><br></div><div><br></div><div>with this, the critical.journal is renamed as critical@000561f6d57153cf-c55b08dfcf5c7ad7.journal~ and a new critical.journal file is created. </div><div><br></div><div>I found that the critical@000561f6d57153cf-c55b08dfcf5c7ad7.journal~ is also a valid file, if i use journal --file option, I am able to read logs from this file.</div><div><br></div><div>I would like to know on how to avoid this corruption. </div><div>While debugging, I found that if I directly kill the systemd-journal-remote process, then also I get this corrupted journal.  So I think that while shutdown this service was killed improperly. </div><div><br></div><div>Is there any way I can avoid this corruption</div><div><br></div><div>Systemd version : 229</div><div>Distro : Custom Distribution</div><div><br></div></div>