[MCOL-4319] Expand logrotate script for Columnstore to include cpimport logs Created: 2020-09-21  Updated: 2021-01-25  Resolved: 2021-01-25

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.5.3
Fix Version/s: 5.5.2

Type: New Feature Priority: Major
Reporter: Todd Stoffel (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: Logging

Sprint: 2021-1, 2021-2

 Description   

Maybe we should add a section like this to /etc/logrotate.d/columnstore:

/var/lib/columnstore/data/bulk/log/* {
    daily
    rotate 2
    compress
    compresscmd xz
}



 Comments   
Comment by Daniel Lee (Inactive) [ 2021-01-05 ]

Build tested: 5.6.1-1 (drone #1437)

The following sections have been added.

/var/lib/columnstore/data/bulk/job/*.xml

{ missingok daily rotate 1 compress maxage 30 nocreate }
/var/lib/columnstore/data/bulk/log/*.err { missingok daily rotate 1 compress maxage 30 nocreate }

/var/lib/columnstore/data/bulk/log/*.log

{ missingok daily rotate 1 compress maxage 30 nocreate }
Comment by Daniel Lee (Inactive) [ 2021-01-25 ]

Build verified: 5.5.2 (b1552), develop b1546

The fixed also checked into the develop branch

centos8:root~]# cat /etc/logrotate.d/columnstore

  1. MariaDB ColumnStore Log Rotate file that gets installed in /etc/logrotate.d
  2. as part of the package installation

/var/log/mariadb/columnstore/*.log

{ missingok rotate 7 daily dateext copytruncate olddir /var/log/mariadb/columnstore/archive su root root }

/etc/columnstore/Columnstore.xml

{ daily dateext copy olddir /etc/columnstore }

/var/lib/columnstore/data/bulk/job/*.xml

{ missingok daily rotate 1 compress maxage 30 nocreate }
/var/lib/columnstore/data/bulk/log/*.err { missingok daily rotate 1 compress maxage 30 nocreate }

/var/lib/columnstore/data/bulk/log/*.log

{ missingok daily rotate 1 compress maxage 30 nocreate }
Generated at Thu Feb 08 02:49:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.