1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="eventlogadm.8">
6 <refentrytitle>eventlogadm</refentrytitle>
7 <manvolnum>8</manvolnum>
12 <refname>eventlogadm</refname>
13 <refpurpose>push records into the Samba event log store</refpurpose>
19 <command>eventlogadm</command>
20 <arg><option>-d</option></arg>
21 <arg><option>-h</option></arg>
22 <arg choice="plain"><option>-o</option>
23 <literal>addsource</literal>
24 <replaceable>EVENTLOG</replaceable>
25 <replaceable>SOURCENAME</replaceable>
26 <replaceable>MSGFILE</replaceable>
31 <command>eventlogadm</command>
32 <arg><option>-d</option></arg>
33 <arg><option>-h</option></arg>
34 <arg choice="plain"><option>-o</option>
35 <literal>write</literal>
36 <replaceable>EVENTLOG</replaceable>
43 <title>DESCRIPTION</title>
45 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
46 <manvolnum>1</manvolnum></citerefentry> suite.</para>
48 <para><command>eventlogadm</command> is a filter that accepts
49 formatted event log records on standard input and writes them
50 to the Samba event log store. Windows client can then manipulate
51 these record using the usual administration tools.</para>
57 <title>OPTIONS</title>
62 <term><option>-d</option></term>
64 The <command>-d</command> option causes <command>eventlogadm</command> to emit debugging
72 <literal>addsource</literal>
73 <replaceable>EVENTLOG</replaceable>
74 <replaceable>SOURCENAME</replaceable>
75 <replaceable>MSGFILE</replaceable>
78 The <command>-o addsource</command> option creates a
86 <literal>write</literal>
87 <replaceable>EVENTLOG</replaceable>
90 The <command>-o write</command> reads event log
91 records from standard input and writes them to theSamba
92 event log store named by EVENTLOG.
97 <term><option>-h</option></term>
99 Print usage information.
108 <title>EVENTLOG RECORD FORMAT</title>
110 <para>For the write operation, <command>eventlogadm</command>
111 expects to be able to read structured records from standard
112 input. These records are a sequence of lines, with the record key
113 and data separated by a colon character. Records are separated
114 by at least one or more blank line.</para>
116 <para>The event log record field are:</para>
120 <command>LEN</command> - This field should be 0, since <command>eventlogadm</command> will calculate this value.
124 <command>RS1</command> - This must be the value 1699505740.
128 <command>RCN</command> - This field should be 0.
132 <command>TMG</command> - The time the eventlog record
133 was generated; format is the number of seconds since
134 00:00:00 January 1, 1970, UTC.
138 <command>TMW</command> - The time the eventlog record was
139 written; format is the number of seconds since 00:00:00
140 January 1, 1970, UTC.
144 <command>EID</command> - The eventlog ID.
148 <command>ETP</command> - The event type -- one of
150 "ERROR", "WARNING", "AUDIT
151 SUCCESS" or "AUDIT FAILURE".
155 <command>ECT</command> - The event category; this depends
156 on the message file. It is primarily used as a means of
157 filtering in the eventlog viewer.
161 <command>RS2</command> - This field should be 0.
165 <command>CRN</command> - This field should be 0.
169 <command>USL</command> - This field should be 0.
173 <command>SRC</command> - This field contains the source
174 name associated with the event log. If a message file is
175 used with an event log, there will be a registry entry
176 for associating this source name with a message file DLL.
180 <command>SRN</command> - he name of the machine on
181 which the eventlog was generated. This is typically the
186 <command>STR</command> - The text associated with the
187 eventlog. There may be more than one string in a record.
191 <command>DAT</command> - This field should be left unset.
199 <title>EXAMPLES</title>
200 <para>An example of the record format accepted by <command>eventlogadm</command>:</para>
216 STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
220 <para>Set up an eventlog source, specifying a message file DLL:</para>
222 eventlogadm -o addsource Application MyApplication | \\
223 %SystemRoot%/system32/MyApplication.dll
226 <para>Filter messages from the system log into an event log:</para>
228 tail -f /var/log/messages | \\
229 my_program_to_parse_into_eventlog_records | \\
230 eventlogadm SystemLogEvents
236 <title>VERSION</title>
237 <para>This man page is correct for version 3.0.25 of the Samba suite.</para>
241 <title>AUTHOR</title>
243 <para> The original Samba software and related utilities were
244 created by Andrew Tridgell. Samba is now developed by the
245 Samba Team as an Open Source project similar to the way the
246 Linux kernel is developed.</para>