-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure log rotation in all non-global zones
- Loading branch information
Showing
6 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*/15 * * * /usr/sbin/logadm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# | ||
# CDDL HEADER START | ||
# | ||
# The contents of this file are subject to the terms of the | ||
# Common Development and Distribution License (the "License"). | ||
# You may not use this file except in compliance with the License. | ||
# | ||
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | ||
# or http://www.opensolaris.org/os/licensing. | ||
# See the License for the specific language governing permissions | ||
# and limitations under the License. | ||
# | ||
# When distributing Covered Code, include this CDDL HEADER in each | ||
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. | ||
# If applicable, add the following below this CDDL HEADER, with the | ||
# fields enclosed by brackets "[]" replaced with your own identifying | ||
# information: Portions Copyright [yyyy] [name of copyright owner] | ||
# | ||
# CDDL HEADER END | ||
# | ||
# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# logadm.conf | ||
# | ||
# Default settings for system log file management. | ||
# The -w option to logadm(8) is the preferred way to write to this file, | ||
# but if you do edit it by hand, use "logadm -V" to check it for errors. | ||
# | ||
# The format of lines in this file is: | ||
# <logname> <options> | ||
# For each logname listed here, the default options to logadm | ||
# are given. Options given on the logadm command line override | ||
# the defaults contained in this file. | ||
# | ||
# logadm typically runs early every morning via an entry in | ||
# root's crontab (see crontab(1)). | ||
# | ||
/var/log/syslog -C 8 -p 1d -a 'kill -HUP `cat /var/run/syslog.pid`' | ||
/var/adm/messages -C 4 -p 1d -a 'kill -HUP `cat /var/run/syslog.pid`' | ||
/var/cron/log -c -s 512k -t /var/cron/olog | ||
/var/lp/logs/lpsched -C 2 -N -t '$file.$N' | ||
/var/fm/fmd/errlog -N -s 2m -M '/usr/sbin/fmadm -q rotate errlog && mv /var/fm/fmd/errlog.0- $nfile' | ||
/var/fm/fmd/fltlog -N -A 6m -s 10m -M '/usr/sbin/fmadm -q rotate fltlog && mv /var/fm/fmd/fltlog.0- $nfile' | ||
# | ||
# Rotate the SMF logs if they exceed 100M and at least once a day. | ||
smf_logs_size /var/svc/log/*.log -C 8 -s 100m -c | ||
smf_logs_daily /var/svc/log/*.log -C 8 -p 4h -c | ||
# | ||
# The entry below is used by turnacct(8) | ||
# | ||
/var/adm/pacct -C 0 -N -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never | ||
# | ||
# The entry below manages the Dynamic Resource Pools daemon (poold(8)) logfile. | ||
# | ||
/var/log/pool/poold -N -s 512k -a 'pkill -HUP poold; true' | ||
/var/fm/fmd/infolog -N -A 2y -S 50m -s 10m -M '/usr/sbin/fmadm -q rotate infolog && mv /var/fm/fmd/infolog.0- $nfile' | ||
/var/fm/fmd/infolog_hival -N -A 2y -S 50m -s 10m -M '/usr/sbin/fmadm -q rotate infolog_hival && mv /var/fm/fmd/infolog_hival.0- $nfile' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters