How to use logrotate to manage Voyager logs
- Article Type: Q&A
- Product: Voyager
- Product Version: 8
- Relevant for Installation Type: Dedicated-Direct; Direct; Local;
Question
How to automate Voyager logs management?
Answer
Run "man logrotate" or google logrotate to get more information on command. See attached sample configuration file - logrotate.conf.
- SSH to server as root.
- Run logrotate manually in test mode:
logrotate -dv /etc/logrotate.conf
It produces output describing what logrotate would do, without actually doing it. - Save
/etc/logrotate.conf
- Add new section to /etc/logrotate.conf based on requirement. See sample file for reference.
- Verify changes by running:
logrotate -dv logrotate.conf