DX NetOps Manager

Tech Tip: How does the Data Repository rotate logs? 

Oct 07, 2015 11:18 AM

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

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.