source: branches/samba-3.0/docs/manpages/eventlogadm.8@ 134

Last change on this file since 134 was 134, checked in by Paul Smedley, 17 years ago

Update source to 3.0.29

File size: 5.4 KB
Line 
1.\" Title: eventlogadm
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4.\" Date: 05/21/2008
5.\" Manual: System Administration tools
6.\" Source: Samba 3.0
7.\"
8.TH "EVENTLOGADM" "8" "05/21/2008" "Samba 3\.0" "System Administration tools"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14eventlogadm - push records into the Samba event log store
15.SH "SYNOPSIS"
16.HP 1
17eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ addsource\ \fIEVENTLOG\fR\ \fISOURCENAME\fR\ \fIMSGFILE\fR
18.HP 1
19eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ write\ \fIEVENTLOG\fR
20.SH "DESCRIPTION"
21.PP
22This tool is part of the
23\fBsamba\fR(1)
24suite\.
25.PP
26eventlogadm
27is a filter that accepts formatted event log records on standard input and writes them to the Samba event log store\. Windows client can then manipulate these record using the usual administration tools\.
28.SH "OPTIONS"
29.PP
30\fB\-d\fR
31.RS 4
32The
33\-d
34option causes
35eventlogadm
36to emit debugging information\.
37.RE
38.PP
39\fB\-o\fR addsource \fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR
40.RS 4
41The
42\-o addsource
43option creates a new event log source\.
44.RE
45.PP
46\fB\-o\fR write \fIEVENTLOG\fR
47.RS 4
48The
49\-o write
50reads event log records from standard input and writes them to theSamba event log store named by EVENTLOG\.
51.RE
52.PP
53\fB\-h\fR
54.RS 4
55Print usage information\.
56.RE
57.SH "EVENTLOG RECORD FORMAT"
58.PP
59For the write operation,
60eventlogadm
61expects to be able to read structured records from standard input\. These records are a sequence of lines, with the record key and data separated by a colon character\. Records are separated by at least one or more blank line\.
62.PP
63The event log record field are:
64.sp
65.RS 4
66.ie n \{\
67\h'-04'\(bu\h'+03'\c
68.\}
69.el \{\
70.sp -1
71.IP \(bu 2.3
72.\}
73
74LEN
75\- This field should be 0, since
76eventlogadm
77will calculate this value\.
78.RE
79.sp
80.RS 4
81.ie n \{\
82\h'-04'\(bu\h'+03'\c
83.\}
84.el \{\
85.sp -1
86.IP \(bu 2.3
87.\}
88
89RS1
90\- This must be the value 1699505740\.
91.RE
92.sp
93.RS 4
94.ie n \{\
95\h'-04'\(bu\h'+03'\c
96.\}
97.el \{\
98.sp -1
99.IP \(bu 2.3
100.\}
101
102RCN
103\- This field should be 0\.
104.RE
105.sp
106.RS 4
107.ie n \{\
108\h'-04'\(bu\h'+03'\c
109.\}
110.el \{\
111.sp -1
112.IP \(bu 2.3
113.\}
114
115TMG
116\- The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC\.
117.RE
118.sp
119.RS 4
120.ie n \{\
121\h'-04'\(bu\h'+03'\c
122.\}
123.el \{\
124.sp -1
125.IP \(bu 2.3
126.\}
127
128TMW
129\- The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC\.
130.RE
131.sp
132.RS 4
133.ie n \{\
134\h'-04'\(bu\h'+03'\c
135.\}
136.el \{\
137.sp -1
138.IP \(bu 2.3
139.\}
140
141EID
142\- The eventlog ID\.
143.RE
144.sp
145.RS 4
146.ie n \{\
147\h'-04'\(bu\h'+03'\c
148.\}
149.el \{\
150.sp -1
151.IP \(bu 2.3
152.\}
153
154ETP
155\- The event type \-\- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE"\.
156.RE
157.sp
158.RS 4
159.ie n \{\
160\h'-04'\(bu\h'+03'\c
161.\}
162.el \{\
163.sp -1
164.IP \(bu 2.3
165.\}
166
167ECT
168\- The event category; this depends on the message file\. It is primarily used as a means of filtering in the eventlog viewer\.
169.RE
170.sp
171.RS 4
172.ie n \{\
173\h'-04'\(bu\h'+03'\c
174.\}
175.el \{\
176.sp -1
177.IP \(bu 2.3
178.\}
179
180RS2
181\- This field should be 0\.
182.RE
183.sp
184.RS 4
185.ie n \{\
186\h'-04'\(bu\h'+03'\c
187.\}
188.el \{\
189.sp -1
190.IP \(bu 2.3
191.\}
192
193CRN
194\- This field should be 0\.
195.RE
196.sp
197.RS 4
198.ie n \{\
199\h'-04'\(bu\h'+03'\c
200.\}
201.el \{\
202.sp -1
203.IP \(bu 2.3
204.\}
205
206USL
207\- This field should be 0\.
208.RE
209.sp
210.RS 4
211.ie n \{\
212\h'-04'\(bu\h'+03'\c
213.\}
214.el \{\
215.sp -1
216.IP \(bu 2.3
217.\}
218
219SRC
220\- This field contains the source name associated with the event log\. If a message file is used with an event log, there will be a registry entry for associating this source name with a message file DLL\.
221.RE
222.sp
223.RS 4
224.ie n \{\
225\h'-04'\(bu\h'+03'\c
226.\}
227.el \{\
228.sp -1
229.IP \(bu 2.3
230.\}
231
232SRN
233\- he name of the machine on which the eventlog was generated\. This is typically the host name\.
234.RE
235.sp
236.RS 4
237.ie n \{\
238\h'-04'\(bu\h'+03'\c
239.\}
240.el \{\
241.sp -1
242.IP \(bu 2.3
243.\}
244
245STR
246\- The text associated with the eventlog\. There may be more than one string in a record\.
247.RE
248.sp
249.RS 4
250.ie n \{\
251\h'-04'\(bu\h'+03'\c
252.\}
253.el \{\
254.sp -1
255.IP \(bu 2.3
256.\}
257
258DAT
259\- This field should be left unset\.
260.SH "EXAMPLES"
261.PP
262An example of the record format accepted by
263eventlogadm:
264.sp
265.RS 4
266.nf
267 LEN: 0
268 RS1: 1699505740
269 RCN: 0
270 TMG: 1128631322
271 TMW: 1128631322
272 EID: 1000
273 ETP: INFO
274 ECT: 0
275 RS2: 0
276 CRN: 0
277 USL: 0
278 SRC: cron
279 SRN: dmlinux
280 STR: (root) CMD ( rm \-f /var/spool/cron/lastrun/cron\.hourly)
281 DAT:
282
283.fi
284.RE
285.PP
286Set up an eventlog source, specifying a message file DLL:
287.sp
288.RS 4
289.nf
290 eventlogadm \-o addsource Application MyApplication | \e\e
291 %SystemRoot%/system32/MyApplication\.dll
292
293.fi
294.RE
295.PP
296Filter messages from the system log into an event log:
297.sp
298.RS 4
299.nf
300 tail \-f /var/log/messages | \e\e
301 my_program_to_parse_into_eventlog_records | \e\e
302 eventlogadm SystemLogEvents
303
304.fi
305.RE
306.SH "VERSION"
307.PP
308This man page is correct for version 3\.0\.25 of the Samba suite\.
309.SH "AUTHOR"
310.PP
311The original Samba software and related utilities were created by Andrew Tridgell\. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\.
Note: See TracBrowser for help on using the repository browser.