source: branches/samba-3.2.x/docs-xml/Samba-EventLog-HOWTO.txt@ 715

Last change on this file since 715 was 203, checked in by Herwig Bauernfeind, 17 years ago

Missing 3.2.2 client and HOWTO files

File size: 4.5 KB
Line 
1##
2## Samba-EventLog-HOWTO.txt
3## Brian Moran <[email protected]>
4##
5## Feature Introduced in Samba 3.0.21
6##
7
8Samba and Eventlogs
9===================
10
11Samba servers now support event logs -- this means that if
12Samba is configured correctly, the usual administration tools
13like event viewer will work against a Samba server.
14
15To minimally configure Samba to publish event logs, the
16eventlogs to list must be specified in smb.conf, and
17eventlog entries must be written to those eventlogs.
18
19Optionally, a message file can be registered for each
20of the eventlog 'sources' to pretty-print the eventlog
21messages in the eventlog viewer.
22
23Configuring smb.conf
24====================
25
26To specify the list of eventlogs the eventlog list
27command is used. An example which will show four
28eventlogs is
29
30 eventlog list = Application System Security SyslogLinux
31
32When Samba initially starts, it looks to see if the
33eventlog directory, and a particular log exists; if not,
34the directory and file are created under LOCK_DIR
35
36Writing EventLog Records
37========================
38
39The eventlogadm command is used to write records
40into a particular eventlog. Eventlogadm expects records
41to be on STDIN in the following format
42
43 LEN: 0
44 RS1: 1699505740
45 RCN: 0
46 TMG: 1128631322