Thread View: alt.privacy.anon-server
3 messages
3 total messages
Started by noreply
Sun, 03 Feb 2019 00:56
Can the journal logs be deleted?
Author: noreply
Date: Sun, 03 Feb 2019 00:56
Date: Sun, 03 Feb 2019 00:56
10 lines
1054 bytes
1054 bytes
root@me/var/log/journal# fs 961M d9a927bb8f0e49d5ac04b37ee7635bc9 849M journal/bbb0ea85b2a148cd98286b3a6801a8ee 353M journal/a020e2bc938143aba9ef23302ee2f102 8.1M journal/f011e1d2970c4d348a39adaa7b907921 1.3G journal/2b875bc9741c428088f233e199fe0682 1.1G journal/f7d12af3b8fd4ac98c339516c736d4df What are they for?
Re: Can the journal logs be deleted?
Author: William Unruh
Date: Sun, 03 Feb 2019 02:51
Date: Sun, 03 Feb 2019 02:51
24 lines
1870 bytes
1870 bytes
On 2019-02-03, noreply@sfc.com <noreply@sfc.com> wrote: > root@me/var/log/journal# fs > 961M d9a927bb8f0e49d5ac04b37ee7635bc9 > 849M journal/bbb0ea85b2a148cd98286b3a6801a8ee > 353M journal/a020e2bc938143aba9ef23302ee2f102 > 8.1M journal/f011e1d2970c4d348a39adaa7b907921 > 1.3G journal/2b875bc9741c428088f233e199fe0682 > 1.1G journal/f7d12af3b8fd4ac98c339516c736d4df They are journal logs over the last N months (look at the dates on the files ls -l /var/log/journal. They are unreadable except with journalctl (they are binary databases type files) You can control how much you save with /etc/systemd/journald.conf (man journald.conf) For example the default is to use 10% of the partition which may be a lot. You can decrease it if you want. If you do journalctl you can see by the initial dates of the log and for example it is three months ago, then you probably do not need such a large journal log. > > What are they for? > >
Re: Can the journal logs be deleted?
Author: Bit Twister
Date: Sun, 03 Feb 2019 07:47
Date: Sun, 03 Feb 2019 07:47
44 lines
2187 bytes
2187 bytes
On Sat, 2 Feb 2019 18:56:15 -0600, noreply@sfc.com wrote: > Can the journal logs be deleted? Yes > root@me/var/log/journal# fs > 961M d9a927bb8f0e49d5ac04b37ee7635bc9 > 849M journal/bbb0ea85b2a148cd98286b3a6801a8ee > 353M journal/a020e2bc938143aba9ef23302ee2f102 > 8.1M journal/f011e1d2970c4d348a39adaa7b907921 > 1.3G journal/2b875bc9741c428088f233e199fe0682 > 1.1G journal/f7d12af3b8fd4ac98c339516c736d4df > > What are they for? /var/log/journal/* are the different journal directories where the system log database files are stored. You use journalctl to view the contents in a given directory. Homework: man journalctl A quick glance in the current journal directory on my system has $ ls -1 /var/log/journal/$(cat /etc/machine-id) system.journal user-1500.journal user-1503.journal user-1504.journal user-1508.journal user-1511.journal user-1513.journal user-1521.journal user-1524.journal user-1526.journal If you have no use/desire to look back at old journal contents, you can delete the old directories/contents. As you can see from my command "cat /etc/machine-id" gives you the sub-directory of the current log. I wrote my own script, new_boot_logs, to delete/empty log directories/files and it calls my new_journal script to rotate the journal twice and deletes all the journal files then reboots the system.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads