We are going to look at an example configuration.
We have two options for managing log files:
- Create a new configuration file and store it in /etc/logrotate.d/. This configuration file will be executed daily along with other standard jobs. This will be with root privileges.
- Create a new configuration file and execute it independently. This will execute with non-root privileges. This way, you can execute it manually, at whatever times you want.