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 [-s] [-d] [-h] -o addsource EVENTLOG SOURCENAME MSGFILE
10
11       eventlogadm [-s] [-d] [-h] -o write EVENTLOG
12
13       eventlogadm [-s] [-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       -s FILENAME
25           The -s option causes eventlogadm to load the configuration file
26           given as FILENAME instead of the default one used by Samba.
27
28       -d
29           The -d option causes eventlogadm to emit debugging information.
30
31       -o addsource EVENTLOG SOURCENAME MSGFILE
32           The -o addsource option creates a new event log source.
33
34       -o write EVENTLOG
35           The -o write reads event log records from standard input and writes
36           them to the Samba event log store named by EVENTLOG.
37
38       -o dump EVENTLOG RECORD_NUMBER
39           The -o dump reads event log records from a EVENTLOG tdb and dumps
40           them to standard output on screen.
41
42       -h
43           Print usage information.
44

EVENTLOG RECORD FORMAT

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

EXAMPLES

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

VERSION

127       This man page is correct for version 3.0.25 of the Samba suite.
128

AUTHOR

130       The original Samba software and related utilities were created by
131       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
132       Source project similar to the way the Linux kernel is developed.
133
134
135
136Samba 3.6                         04/11/2016                    EVENTLOGADM(8)
Impressum