Apple Mac OS X Server Guia de Configuração Página 31: Local Logging
mail.emerg
/var/log/mail.log
The facility and priority are separated by only a period, and these are separated from
the action by one or more tabs.
Wildcards (“*”) may also be used in the
configuration file. The following example line logs all messages of any facility or
priority to the file
/var/log/all.log
:
*.*
/var/log/all.log
3.10.2 Local Logging
The default configuration in
/etc/syslog.conf
is appropriate for a Mac OS X
Server system if a remote log server is not available. The system is set to rotate log
files using a
cron
job at the time intervals specified in the file
/etc/crontab
.
Rotation entails compressing the current log file, incrementing the integer in the
filename of compressed log files, and creating a new log file for new messages (Table
1).
Table 1: Log Files in /var/log
Files before rotation:
Files after first rotation:
Files after second rotation:
System.log
system.log
system.log
mail.log
mail.log
mail.log
mail.log.1.gz
mail.log.1.gz
system.log.1.gz
system.log.1.gz
mail.log.2.gz
system.log.2.gz
The log files are rotated by a cron job, and the rotation will only occur if the system is
on when the job is scheduled. By default, the log rotation tasks are scheduled for
very early in the morning (e.g. 4:30 A.M. on Saturday) in order to be as unobtrusive
as possible. If the system will not be powered on at this time, adjust the settings in
/etc/crontab
.
Details on editing the
/etc/crontab
file can be found by issuing the command
man 5 crontab
in a terminal window. For example, the following line shows the
default for running the weekly log rotation script, which is configured for 4:15 AM on
the last day of the week, Saturday (Sunday is 0). An asterisk denotes “any,” so a line
of all asterisks would execute every minute.
DayOf
DayOf
#Minute
Hour
Month
Month
Week
User
Command
15
4
*
*
6
root
periodic weekly
The following line would change the time to 12:15 PM on Tuesday, when the system
is much more likely to be on:
25
UNCLASSIFIED
Ficheiro PDF · ·
Perguntas sobre Apple Mac OS X Server
Ainda não há perguntas sobre este manual. Faça a primeira.
Manuais e produtos relacionados com Software Apple Mac OS X Server
- Software Apple Mac OS X Server Especificações
(88 páginas) - Software Apple Mac OS X Server Migration For Version 10.3 or Later Manual do Utilizador
(13 páginas) - Software Apple Motion 1.0.1 Manual do Utilizador
(15 páginas) - Software Apple Mac OS X Server Manual do Utilizador
(175 páginas) - Software Apple Mac OS X Panther Manual do Utilizador
(24 páginas) - Software Apple Newton Internet Enabler Guia do Utilizador
(26 páginas) - Software Apple Mac OS X Server Java Application Server Administration For Version 10.3 or Later Manual do Utilizador
(50 páginas) - Software Apple Newton Internet Enabler Especificações
(24 páginas) - Software Apple Education Software Installer 2011 System administrator`s guide Manual do Utilizador
(42 páginas) - Software Apple Shake Qmaster Manual do Utilizador
(42 páginas) - Software Apple MA434Z/A - Shake Manual do Utilizador
(13 páginas) - Software Apple Final Cut Studio Especificações
(116 páginas) - Software Apple DVD Studio Pro Manual do Utilizador
(36 páginas) - Software Apple Final Cut Express HD Manual do Utilizador
(14 páginas) - Software Apple iMac (Slot Loading) Manual de Reparação
(11 páginas) - Software Apple iPad and iPad mini (iOS 6.1 Software) Guia do Utilizador
(37 páginas) - Software Apple Final Cut Pro 5 Manual do Utilizador
(376 páginas) - Software Apple MB788 - Logic Express - Mac Manual do Utilizador
(4 páginas) - Software Apple Education Software Installer 2011 System administrator`s guide Especificações
(168 páginas) - Software Apple Motion Manual do Utilizador
(72 páginas)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69