File: eventlogadm.8.html

package info (click to toggle)
samba 2:3.6.6-6+deb7u7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 160,976 kB
  • sloc: ansic: 1,764,536; xml: 114,867; python: 78,119; perl: 27,633; sh: 13,802; makefile: 4,704; asm: 3,281; cpp: 2,281; yacc: 1,949; exp: 1,784; ada: 1,681; pascal: 1,089; cs: 879; awk: 756; lex: 566; csh: 58; sed: 45; php: 6
file content (128 lines) | stat: -rw-r--r-- 8,109 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>eventlogadm</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="eventlogadm"><a name="eventlogadm.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>eventlogadm &#8212; push records into the Samba event log store</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">eventlogadm</code> [<code class="option">-s</code>] [<code class="option">-d</code>] [<code class="option">-h</code>]  <code class="option">-o</code>
		<code class="literal">addsource</code>
		<em class="replaceable"><code>EVENTLOG</code></em>
		<em class="replaceable"><code>SOURCENAME</code></em>
		<em class="replaceable"><code>MSGFILE</code></em>
		 </p></div><div class="cmdsynopsis"><p><code class="literal">eventlogadm</code> [<code class="option">-s</code>] [<code class="option">-d</code>] [<code class="option">-h</code>]  <code class="option">-o</code>
		<code class="literal">write</code>
		<em class="replaceable"><code>EVENTLOG</code></em>
		 </p></div><div class="cmdsynopsis"><p><code class="literal">eventlogadm</code> [<code class="option">-s</code>] [<code class="option">-d</code>] [<code class="option">-h</code>]  <code class="option">-o</code>
		<code class="literal">dump</code>
		<em class="replaceable"><code>EVENTLOG</code></em>
		<em class="replaceable"><code>RECORD_NUMBER</code></em>
		 </p></div></div><div class="refsect1" title="DESCRIPTION"><a name="id265759"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.1.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(1)</span></a> suite.</p><p><code class="literal">eventlogadm</code> is a filter that accepts
	formatted event log records on standard input and writes them
	to the Samba event log store. Windows client can then manipulate
	these record using the usual administration tools.</p></div><div class="refsect1" title="OPTIONS"><a name="id265788"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">
		<code class="option">-s</code>
		<em class="replaceable"><code>FILENAME</code></em>
		</span></dt><dd><p>
		The <code class="literal">-s</code> option causes <code class="literal">eventlogadm</code> to load the
		configuration file given as FILENAME instead of the default one used by Samba.
		</p></dd><dt><span class="term"><code class="option">-d</code></span></dt><dd><p>
		The <code class="literal">-d</code> option causes <code class="literal">eventlogadm</code> to emit debugging
		information.
		</p></dd><dt><span class="term">
		<code class="option">-o</code>
		<code class="literal">addsource</code>
		<em class="replaceable"><code>EVENTLOG</code></em>
		<em class="replaceable"><code>SOURCENAME</code></em>
		<em class="replaceable"><code>MSGFILE</code></em>
		</span></dt><dd><p>
		The <code class="literal">-o addsource</code> option creates a
		new event log source.
		</p></dd><dt><span class="term">
		<code class="option">-o</code>
		<code class="literal">write</code>
		<em class="replaceable"><code>EVENTLOG</code></em>
		</span></dt><dd><p>
		The <code class="literal">-o write</code> reads event log
		records from standard input and writes them to the Samba
		event log store named by EVENTLOG.
		</p></dd><dt><span class="term">
		<code class="option">-o</code>
		<code class="literal">dump</code>
		<em class="replaceable"><code>EVENTLOG</code></em>
		<em class="replaceable"><code>RECORD_NUMBER</code></em>
		</span></dt><dd><p>
		The <code class="literal">-o dump</code> reads event log
		records from a EVENTLOG tdb and dumps them to standard
		output on screen.
		</p></dd><dt><span class="term"><code class="option">-h</code></span></dt><dd><p>
		Print usage information.
		</p></dd></dl></div></div><div class="refsect1" title="EVENTLOG RECORD FORMAT"><a name="id265966"></a><h2>EVENTLOG RECORD FORMAT</h2><p>For the write operation, <code class="literal">eventlogadm</code>
	expects to be able to read structured records from standard
	input. These records are a sequence of lines, with the record key
	and data separated by a colon character. Records are separated
	by at least one or more blank line.</p><p>The event log record field are:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
		<code class="literal">LEN</code> - This field should be 0, since <code class="literal">eventlogadm</code> will calculate this value.
		</p></li><li class="listitem"><p>
		<code class="literal">RS1</code> - This must be the value 1699505740.
		</p></li><li class="listitem"><p>
		<code class="literal">RCN</code> -  This field should be 0.
		</p></li><li class="listitem"><p>
		<code class="literal">TMG</code> - The time the eventlog record
		was generated; format is the number of seconds since
		00:00:00 January 1, 1970, UTC.
		</p></li><li class="listitem"><p>
		<code class="literal">TMW</code> - The time the eventlog record was
		written; format is the number of seconds since 00:00:00
		January 1, 1970, UTC.
		</p></li><li class="listitem"><p>
		<code class="literal">EID</code> - The eventlog ID.
		</p></li><li class="listitem"><p>
		<code class="literal">ETP</code> - The event type -- one of
		"INFO",
		"ERROR", "WARNING", "AUDIT
		SUCCESS" or "AUDIT FAILURE".
		</p></li><li class="listitem"><p>
		<code class="literal">ECT</code> - The event category; this depends
		on the message file. It is primarily used as a means of
		filtering in the eventlog viewer.
		</p></li><li class="listitem"><p>
		<code class="literal">RS2</code> - This field should be 0.
		</p></li><li class="listitem"><p>
		<code class="literal">CRN</code> - This field should be 0.
		</p></li><li class="listitem"><p>
		<code class="literal">USL</code> - This field should be 0.
		</p></li><li class="listitem"><p>
		<code class="literal">SRC</code> - This field contains the source
		name associated with the event log. If a message file is
		used with an event log, there will be a registry entry
		for associating this source name with a message file DLL.
		</p></li><li class="listitem"><p>
		<code class="literal">SRN</code> - The name of the machine on
		which the eventlog was generated. This is typically the
		host name.
		</p></li><li class="listitem"><p>
		<code class="literal">STR</code> - The text associated with the
		eventlog. There may be more than one string in a record.
		</p></li><li class="listitem"><p>
		<code class="literal">DAT</code> - This field should be left unset.
		</p></li></ul></div></div><div class="refsect1" title="EXAMPLES"><a name="id307202"></a><h2>EXAMPLES</h2><p>An example of the record format accepted by <code class="literal">eventlogadm</code>:</p><pre class="programlisting">
	LEN: 0
	RS1: 1699505740
	RCN: 0
	TMG: 1128631322
	TMW: 1128631322
	EID: 1000
	ETP: INFO
	ECT: 0
	RS2: 0
	CRN: 0
	USL: 0
	SRC: cron
	SRN: dmlinux
	STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
	DAT:
	</pre><p>Set up an eventlog source, specifying a message file DLL:</p><pre class="programlisting">
	eventlogadm -o addsource Application MyApplication | \\
	    	%SystemRoot%/system32/MyApplication.dll
	</pre><p>Filter messages from the system log into an event log:</p><pre class="programlisting">
	tail -f /var/log/messages | \\
		my_program_to_parse_into_eventlog_records | \\
	      	eventlogadm SystemLogEvents
	</pre></div><div class="refsect1" title="VERSION"><a name="id307243"></a><h2>VERSION</h2><p>This man page is correct for version 3.0.25 of the Samba suite.</p></div><div class="refsect1" title="AUTHOR"><a name="id307252"></a><h2>AUTHOR</h2><p> The original Samba software and related utilities were
	created by Andrew Tridgell.  Samba is now developed by the
	Samba Team as an Open Source project similar to the way the
	Linux kernel is developed.</p></div></div></body></html>