![]() For example, if you have 10 archived journal files and want to reduce these down to 2, you can do so by running the following command: $ journalctl -vacuum-files=2 ![]() You can also use the -vacuum-files option, which deletes all but the specified number of journal files. These two options are available from systemd version 218. When using –vacuum-time option, archived journals older than the time specified will be deleted. Vacuuming done, freed 200M of archived journals from /var/log/journal/ebb94c86dc6447fba1f308728c4 The output should be something similar to this. In the example below, we are deleting any archived journal files, so the journal size comes back to 200MB. To delete archived journal entries manually, you can use either the –vacuum-size or the –vacuum-time option. ![]() You can also manage disk space taken up by systemd journal by fine-tuning these configuration parameters: To check how much disk space is currently taken up by the journal, use the –disk-usage parameter: $ journalctl -disk-usageĭepending on the version of journalctl, the output can be similar to this: Archived and active journals take up 96.0M on disk. We can also use journalctl to manage the size of the journal, which we’ll explain in more detail in this section. In the Linux Logging with Systemd section, we explain how to control the thresholds for deleting old log data with configuration parameters. Analyzing and Troubleshooting Python Logsīy default, systemd-journald ensures older journal records or journal files are deleted in order to keep a certain amount of disk space free.Python Logging Libraries and Frameworks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |