Teaching you how to fish for yourself ....
Use
locate to find files on your computer. If it isn't installed, install whatever package APT says you need. The package name has changed a few times in the last 20 yrs, so I never remember it.
Whenver I need to know the name of a config file for any process or daemon, I take a few guesses and use
locate to find them.
For a config file for the "journald" daemon, I'd guess "journald.conf" as my first guess and I'd expect it to be somewhere under /etc/ ... if not in /etc/ itself, in a sub-sub-sub directory ... but it doesn't matter because locate would know already. If the filename journald.conf isn't found, I'd remove the 'd' and locate on "journal.conf". If that didn't work, I'd look in the manpages for the command line tool, journalctl in this case, and at the very bottom, there's a "See Also" section which normally would list other commands and config files related to the topic. So, on my system, the
journalctl manpage has this:
Code:
SEE ALSO
systemd(1), systemd-journald.service(8), systemctl(1), coredumpctl(1), systemd.journal-fields(7),
journald.conf(5), systemd.time(7), systemd-journal-remote.service(8), systemd-journal-upload.service(8)
Which shows that my first guess (which I would have already found) also has a manpage.
Code:
$ man journald.conf
JOURNALD.CONF(5) journald.conf JOURNALD.CONF(5)
NAME
journald.conf, journald.conf.d, journald@.conf - Journal service configuration files
SYNOPSIS
/etc/systemd/journald.conf
/etc/systemd/journald.conf.d/*.conf
/run/systemd/journald.conf.d/*.conf
/usr/lib/systemd/journald.conf.d/*.conf
....
The are settings and documented in both comments inside the files and inside the manpages.
Next up, logrotate .... where are the config files for it? What settings can those accept? Where are the answers to the question asked? Hint, the answers are probably in the manpage for logrotate and the config files for logrotate. You have 4+ methods to find the answer provided above. BTW, logrotate config files are usually split by each log file to be managed/limited, so there should be 20+ examples of the settings for 20 different text-based log files on your system. If you create a script/program that sends output to a log file, you can create a logrotate config file just for your custom script/program to rotate the logs from time to time based on size, age, or a few other considerations. You can tell it to keep 2 or 200 log files and to compress them all or just the ones that aren't currently in use. Logrotate is a mature tool. It has been around longer than I've been using Unix and it was mature when I started.
If you want a fancy GUI to read manpages, not a terminal interface, use
xman.
Now you know how to fish for answers yourself and get them from authoritative sources, not random people (like me) on the internet.
Hope this is helpful and will help you for the next 50+ yrs, not just for 15 minutes today.
Bookmarks