blob: 758fad621d18e137e47bc25afe4f6a91075a0014 (
plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
<!--
$FML$
-->
<qandaset>
<qandaentry>
<question>
<para>
show fml error log of yesterday.
</para>
</question>
<answer>
<para>
daily.pl of &fml4; is not implemented yet.
</para>
<para>
Currently use grep to parse the log file.
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
See old logs.
</para>
</question>
<answer>
<para>
&fml8; appends log messages continuously into the log file at
$ml_home_directory by default. All log messages exist in it.
</para>
<para>
On the other hand, Unix log expires.
So you cannot trace too lod messages.
</para>
<para>
Please tune parameters of expiration tools e.g. newsyslog which
program differs from unix variants to variants to save log messages in
at least 3 months.
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Centralize log messages.
</para>
</question>
<answer>
<para>
Unix uses syslog mechanism.
To redirect all messages to /var/log/messages, set the following:
<screen>
[/etc/syslog.conf]
*.* /var/log/messages
</screen>
</para>
<para>
Also, &fml8; can use syslog mechanism.
<screen>
[/var/spool/ml/elena/config.cf]
log_type = syslog
</screen>
</para>
<para>
To use these configuration, all messages are centralized to
/var/log/messages file.
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
extract specific log messages in monitoring.
</para>
</question>
<answer>
<para>
<screen>
% tail -F /var/spool/ml/elena/log | grep 'PATTERN'
</screen>
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
extrace the specific log messages with coping it.
</para>
</question>
<answer>
<para>
<screen>
% tail -F /var/spool/ml/elena/log | grep 'PATTERN' | tee FILE
</screen>
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Expire old log files.
</para>
</question>
<answer>
<para>
Newsyslog mechanism provided by &fml4; is not implemented.
</para>
</answer>
</qandaentry>
</qandaset>
|