To prevent the underlying vertica.log file from becoming too large, configure log rotation for Data Repository. The recommended configuration for the log rotation is a daily rotation with logs retained for 21 days.
Important! Configuring the log rotation is required because the underlying Data Repository log file (vertica.log) can grow substantially.
Follow these steps:
su - dradmin
/opt/vertica/bin/admintools -t logrotate -d drdata -r daily -k 3
Data Repository log rotation is now set up to occur daily, and only three weeks of log files are maintained.
You can verify that the vertica.log rotation has been configured correctly. As the log rotation occurs, new gzipped vertica.log files appear in the Vertica catalog directory for previous days. These log files have filenames such as vertica.log.1.gz, vertica.log.2.gz, and so on, with vertica.log.1.gz being the most recent backup.
Copyright © 2015 CA Technologies.
All rights reserved.
|
|