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

Last change on this file since 107 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 4.1 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "EVENTLOGADM" 8 "" "" ""
21.SH "NAME"
22eventlogadm - push records into the Samba event log store
23.SH "SYNOPSIS"
24.HP 1
25eventlogadm [\fB-d\fR] [\fB-h\fR] \fB-o\fR addsource \fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR
26.HP 1
27eventlogadm [\fB-d\fR] [\fB-h\fR] \fB-o\fR write \fIEVENTLOG\fR
28.SH "DESCRIPTION"
29.PP
30This tool is part of the
31\fBsamba\fR(1)
32suite.
33.PP
34eventlogadm
35is 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.
36.SH "OPTIONS"
37.PP
38\fB-d\fR
39.RS 3n
40The
41-d
42option causes
43eventlogadm
44to emit debugging information.
45.RE
46.PP
47\fB-o\fR addsource \fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR
48.RS 3n
49The
50-o addsource
51option creates a new event log source.
52.RE
53.PP
54\fB-o\fR write \fIEVENTLOG\fR
55.RS 3n
56The
57-o write
58reads event log records from standard input and writes them to theSamba event log store named by EVENTLOG.
59.RE
60.PP
61\fB-h\fR
62.RS 3n
63Print usage information.
64.RE
65.SH "EVENTLOG RECORD FORMAT"
66.PP
67For the write operation,
68eventlogadm
69expects 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.
70.PP
71The event log record field are:
72.TP 3n
73\(bu
74
75LEN
76- This field should be 0, since
77eventlogadm
78will calculate this value.
79.TP 3n
80\(bu
81
82RS1
83- This must be the value 1699505740.
84.TP 3n
85\(bu
86
87RCN
88- This field should be 0.
89.TP 3n
90\(bu
91
92TMG
93- The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC.
94.TP 3n
95\(bu
96
97TMW
98- The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC.
99.TP 3n
100\(bu
101
102EID
103- The eventlog ID.
104.TP 3n
105\(bu
106
107ETP
108- The event type -- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE".
109.TP 3n
110\(bu
111
112ECT
113- The event category; this depends on the message file. It is primarily used as a means of filtering in the eventlog viewer.
114.TP 3n
115\(bu
116
117RS2
118- This field should be 0.
119.TP 3n
120\(bu
121
122CRN
123- This field should be 0.
124.TP 3n
125\(bu
126
127USL
128- This field should be 0.
129.TP 3n
130\(bu
131
132SRC
133- 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.
134.TP 3n
135\(bu
136
137SRN
138- he name of the machine on which the eventlog was generated. This is typically the host name.
139.TP 3n
140\(bu
141
142STR
143- The text associated with the eventlog. There may be more than one string in a record.
144.TP 3n
145\(bu
146
147DAT
148- This field should be left unset.
149.SH "EXAMPLES"
150.PP
151An example of the record format accepted by
152eventlogadm:
153
154.nf
155
156 LEN: 0
157 RS1: 1699505740
158 RCN: 0
159 TMG: 1128631322
160 TMW: 1128631322
161 EID: 1000
162 ETP: INFO
163 ECT: 0
164 RS2: 0
165 CRN: 0
166 USL: 0
167 SRC: cron
168 SRN: dmlinux
169 STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
170 DAT:
171
172.fi
173.PP
174Set up an eventlog source, specifying a message file DLL:
175
176.nf
177
178 eventlogadm -o addsource Application MyApplication | \\
179 %SystemRoot%/system32/MyApplication.dll
180
181.fi
182.PP
183Filter messages from the system log into an event log:
184
185.nf
186
187 tail -f /var/log/messages | \\
188 my_program_to_parse_into_eventlog_records | \\
189 eventlogadm SystemLogEvents
190
191.fi
192.SH "VERSION"
193.PP
194This man page is correct for version 3.0.25 of the Samba suite.
195.SH "AUTHOR"
196.PP
197The 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.
198
Note: See TracBrowser for help on using the repository browser.