Tech Tip: How does the Data Repository rotate logs?

Document created by kk_sup Employee on Oct 7, 2015Last modified by SamCreek on Dec 17, 2016
Version 2Show Document
  • View in full screen mode

The Vertica database on the Data Repository uses the linux logrotate command to rotate logs such as the vertica.log


For example when configuring log rotation for the Data Repository after installation we provide the following example command:


/opt/vertica/bin/admintools -t logrotate -d drdata -r daily -k 3

 

Using the database name of drdata as in the example above, this would write a file in logrotate configuration syntax under /opt/vertica/config/logrotate named drdata

 

In the /etc/logrotate.conf file, logrotate includes files from /etc/logrotate.d:


# RPM packages drop log rotation information into this directory

include /etc/logrotate.d

 

In /etc/logrotate.d there is a file named vertica which includes the files under  /opt/vertica/config/logrotate:


include /opt/vertica/config/logrotate

Attachments

    Outcomes