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>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">3.2</refmiscinfo>
15 <refname>eventlogadm</refname>
16 <refpurpose>push records into the Samba event log store</refpurpose>
22 <command>eventlogadm</command>
23 <arg><option>-d</option></arg>
24 <arg><option>-h</option></arg>
25 <arg choice="plain"><option>-o</option>
26 <literal>addsource</literal>
27 <replaceable>EVENTLOG</replaceable>
28 <replaceable>SOURCENAME</replaceable>
29 <replaceable>MSGFILE</replaceable>
34 <command>eventlogadm</command>
35 <arg><option>-d</option></arg>
36 <arg><option>-h</option></arg>
37 <arg choice="plain"><option>-o</option>
38 <literal>write</literal>
39 <replaceable>EVENTLOG</replaceable>
46 <title>DESCRIPTION</title>
48 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
49 <manvolnum>1</manvolnum></citerefentry> suite.</para>
51 <para><command>eventlogadm</command> is a filter that accepts
52 formatted event log records on standard input and writes them
53 to the Samba event log store. Windows client can then manipulate
54 these record using the usual administration tools.</para>
60 <title>OPTIONS</title>
65 <term><option>-d</option></term>
67 The <command>-d</command> option causes <command>eventlogadm</command> to emit debugging
75 <literal>addsource</literal>
76 <replaceable>EVENTLOG</replaceable>
77 <replaceable>SOURCENAME</replaceable>
78 <replaceable>MSGFILE</replaceable>
81 The <command>-o addsource</command> option creates a
89 <literal>write</literal>
90 <replaceable>EVENTLOG</replaceable>
93 The <command>-o write</command> reads event log
94 records from standard input and writes them to theSamba
95 event log store named by EVENTLOG.
100 <term><option>-h</option></term>
102 Print usage information.
111 <title>EVENTLOG RECORD FORMAT</title>
113 <para>For the write operation, <command>eventlogadm</command>
114 expects to be able to read structured records from standard
115 input. These records are a sequence of lines, with the record key
116 and data separated by a colon character. Records are separated
117 by at least one or more blank line.</para>
119 <para>The event log record field are:</para>
123 <command>LEN</command> - This field should be 0, since <command>eventlogadm</command> will calculate this value.
127 <command>RS1</command> - This must be the value 1699505740.
131 <command>RCN</command> - This field should be 0.
135 <command>TMG</command> - The time the eventlog record
136 was generated; format is the number of seconds since
137 00:00:00 January 1, 1970, UTC.
141 <command>TMW</command> - The time the eventlog record was
142 written; format is the number of seconds since 00:00:00
143 January 1, 1970, UTC.
147 <command>EID</command> - The eventlog ID.
151 <command>ETP</command> - The event type -- one of
153 "ERROR", "WARNING", "AUDIT
154 SUCCESS" or "AUDIT FAILURE".
158 <command>ECT</command> - The event category; this depends
159 on the message file. It is primarily used as a means of
160 filtering in the eventlog viewer.
164 <command>RS2</command> - This field should be 0.
168 <command>CRN</command> - This field should be 0.
172 <command>USL</command> - This field should be 0.
176 <command>SRC</command> - This field contains the source
177 name associated with the event log. If a message file is
178 used with an event log, there will be a registry entry
179 for associating this source name with a message file DLL.
183 <command>SRN</command> - he name of the machine on
184 which the eventlog was generated. This is typically the
189 <command>STR</command> - The text associated with the
190 eventlog. There may be more than one string in a record.
194 <command>DAT</command> - This field should be left unset.
202 <title>EXAMPLES</title>
203 <para>An example of the record format accepted by <command>eventlogadm</command>:</para>
219 STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
223 <para>Set up an eventlog source, specifying a message file DLL:</para>
225 eventlogadm -o addsource Application MyApplication | \\
226 %SystemRoot%/system32/MyApplication.dll
229 <para>Filter messages from the system log into an event log:</para>
231 tail -f /var/log/messages | \\
232 my_program_to_parse_into_eventlog_records | \\
233 eventlogadm SystemLogEvents
239 <title>VERSION</title>
240 <para>This man page is correct for version 3.0.25 of the Samba suite.</para>
244 <title>AUTHOR</title>
246 <para> The original Samba software and related utilities were
247 created by Andrew Tridgell. Samba is now developed by the
248 Samba Team as an Open Source project similar to the way the
249 Linux kernel is developed.</para>