ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001713ClearOSapp-base - Base Systempublic2014-05-23 15:282020-01-13 04:41
Reporterdloper 
Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version7.0.0 Alpha 2 
Target VersionFixed in Version 
Summary0001713: Change log file names between apache, webconfig, squid, and dansguardian...possibly others.
DescriptionEnterprise-grade logging requires log files to have unique names for archive purposes. These are often stored in flat directories which would cause a conflict between the name 'access.log' in various services. While we store them in different directories, upstream 7, by default, will archive to the same central directory. Their reason for their change is to allow archived data to be NFS mounted to permanent storage.

To avoid issues and unnecessary hacks that will require large maintenance, we should merely change the names of log files in version 7 and avoid the issue all together.

While we could use a relative directory for 'olddir' it will be more scalable to specify an absolute path so as to be able to use more robust logging techniques.

ALSO! note the change to XZ compression. If we have reports running out of archives, we will need to tune the reporting engine to be able to handle reading this data (ie. zcat and zgrep need to be changed to xzgrep and xzcat respectively).
Additional InformationThis example is very close to what will be done in version 7:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 52 weeks worth of backlogs
rotate 52

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
dateext

# use xz for compression
compresscmd /usr/bin/xz
uncompresscmd /usr/bin/unxz
compressext .xz
compressoptions -9e

# store archives in /var/log/archive
olddir /var/log/archive

# uncomment this if you want your log files compressed
compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    minsize 1M
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0600 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0012681)
NickH (developer)
2020-01-13 04:41

Migrated to https://gitlab.com/clearos/clearfoundation/app-base/issues/33 [^]

- Issue History
Date Modified Username Field Change
2014-05-23 15:28 dloper New Issue
2014-05-23 15:34 user2 Status new => confirmed
2020-01-13 04:41 NickH Note Added: 0012681
2020-01-13 04:41 NickH Status confirmed => closed
2020-01-13 04:41 NickH Resolution open => suspended