1EVENTLOGADM(8)            System Administration tools           EVENTLOGADM(8)
2
3
4

NAME

6       eventlogadm - push records into the Samba event log store
7

SYNOPSIS

9       eventlogadm [-d] [-h] -o addsource EVENTLOG SOURCENAME MSGFILE
10
11       eventlogadm [-d] [-h] -o write EVENTLOG
12
13       eventlogadm [-d] [-h] -o dump EVENTLOG RECORD_NUMBER
14

DESCRIPTION

16       This tool is part of the samba(1) suite.
17
18       eventlogadm is a filter that accepts formatted event log records on
19       standard input and writes them to the Samba event log store. Windows
20       client can then manipulate these record using the usual administration
21       tools.
22

OPTIONS

24       -d
25           The -d option causes eventlogadm to emit debugging information.
26
27       -o addsource EVENTLOG SOURCENAME MSGFILE
28           The -o addsource option creates a new event log source.
29
30       -o write EVENTLOG
31           The -o write reads event log records from standard input and writes
32           them to the Samba event log store named by EVENTLOG.
33
34       -o dump EVENTLOG RECORD_NUMBER
35           The -o dump reads event log records from a EVENTLOG tdb and dumps
36           them to standard output on screen.
37
38       -h
39           Print usage information.
40

EVENTLOG RECORD FORMAT

42       For the write operation, eventlogadm expects to be able to read
43       structured records from standard input. These records are a sequence of
44       lines, with the record key and data separated by a colon character.
45       Records are separated by at least one or more blank line.
46
47       The event log record field are:
48
49       ·    LEN - This field should be 0, since eventlogadm will calculate
50           this value.
51
52       ·    RS1 - This must be the value 1699505740.
53
54       ·    RCN - This field should be 0.
55
56       ·    TMG - The time the eventlog record was generated; format is the
57           number of seconds since 00:00:00 January 1, 1970, UTC.
58
59       ·    TMW - The time the eventlog record was written; format is the
60           number of seconds since 00:00:00 January 1, 1970, UTC.
61
62       ·    EID - The eventlog ID.
63
64       ·    ETP - The event type -- one of "INFO", "ERROR", "WARNING", "AUDIT
65           SUCCESS" or "AUDIT FAILURE".
66
67       ·    ECT - The event category; this depends on the message file. It is
68           primarily used as a means of filtering in the eventlog viewer.
69
70       ·    RS2 - This field should be 0.
71
72       ·    CRN - This field should be 0.
73
74       ·    USL - This field should be 0.
75
76       ·    SRC - This field contains the source name associated with the
77           event log. If a message file is used with an event log, there will
78           be a registry entry for associating this source name with a message
79           file DLL.
80
81       ·    SRN - The name of the machine on which the eventlog was generated.
82           This is typically the host name.
83
84       ·    STR - The text associated with the eventlog. There may be more
85           than one string in a record.
86
87       ·    DAT - This field should be left unset.
88

EXAMPLES

90       An example of the record format accepted by eventlogadm:
91
92                LEN: 0
93                RS1: 1699505740
94                RCN: 0
95                TMG: 1128631322
96                TMW: 1128631322
97                EID: 1000
98                ETP: INFO
99                ECT: 0
100                RS2: 0
101                CRN: 0
102                USL: 0
103                SRC: cron
104                SRN: dmlinux
105                STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
106                DAT:
107
108
109       Set up an eventlog source, specifying a message file DLL:
110
111                eventlogadm -o addsource Application MyApplication | \\
112                     %SystemRoot%/system32/MyApplication.dll
113
114
115       Filter messages from the system log into an event log:
116
117                tail -f /var/log/messages | \\
118                     my_program_to_parse_into_eventlog_records | \\
119                          eventlogadm SystemLogEvents
120
121

VERSION

123       This man page is correct for version 3.0.25 of the Samba suite.
124

AUTHOR

126       The original Samba software and related utilities were created by
127       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
128       Source project similar to the way the Linux kernel is developed.
129
130
131
132Samba 3.5                         08/02/2011                    EVENTLOGADM(8)
Impressum