source: trunk/server/docs/manpages/vfs_smb_traffic_analyzer.8@ 596

Last change on this file since 596 was 596, checked in by Herwig Bauernfeind, 14 years ago

Samba 3.5: Update trunk to 3.5.8

File size: 5.7 KB
Line 
1'\" t
2.\" Title: smb_traffic_analyzer
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 03/06/2011
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "SMB_TRAFFIC_ANALYZER" "8" "03/06/2011" "Samba 3\&.5" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22vfs_smb_traffic_analyzer \- log Samba VFS read and write operations through a socket to a helper application
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = smb_traffic_analyzer
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The
33vfs_smb_traffic_analyzer
34VFS module logs client write and read operations on a Samba server and sends this data over a socket to a helper program, which feeds a SQL database\&. More information on the helper programs can be obtained from the homepage of the project at: http://holger123\&.wordpress\&.com/smb\-traffic\-analyzer/
35.PP
36vfs_smb_traffic_analyzer
37currently is aware of the following VFS operations:
38.RS 4
39write
40.RE
41.RS 4
42pwrite
43.RE
44.RS 4
45read
46.RE
47.RS 4
48pread
49.RE
50.PP
51vfs_smb_traffic_analyzer
52sends the following data in a fixed format seperated by a comma through either an internet or a unix domain socket:
53.sp
54.if n \{\
55.RS 4
56.\}
57.nf
58 BYTES|USER|DOMAIN|READ/WRITE|SHARE|FILENAME|TIMESTAMP
59
60.fi
61.if n \{\
62.RE
63.\}
64.PP
65Description of the records:
66.sp
67.RS 4
68.ie n \{\
69\h'-04'\(bu\h'+03'\c
70.\}
71.el \{\
72.sp -1
73.IP \(bu 2.3
74.\}
75BYTES
76\- the length in bytes of the VFS operation
77.RE
78.sp
79.RS 4
80.ie n \{\
81\h'-04'\(bu\h'+03'\c
82.\}
83.el \{\
84.sp -1
85.IP \(bu 2.3
86.\}
87USER
88\- the user who initiated the operation
89.RE
90.sp
91.RS 4
92.ie n \{\
93\h'-04'\(bu\h'+03'\c
94.\}
95.el \{\
96.sp -1
97.IP \(bu 2.3
98.\}
99DOMAIN
100\- the domain of the user
101.RE
102.sp
103.RS 4
104.ie n \{\
105\h'-04'\(bu\h'+03'\c
106.\}
107.el \{\
108.sp -1
109.IP \(bu 2.3
110.\}
111READ/WRITE
112\- either "W" for a write operation or "R" for read
113.RE
114.sp
115.RS 4
116.ie n \{\
117\h'-04'\(bu\h'+03'\c
118.\}
119.el \{\
120.sp -1
121.IP \(bu 2.3
122.\}
123SHARE
124\- the name of the share on which the VFS operation occured
125.RE
126.sp
127.RS 4
128.ie n \{\
129\h'-04'\(bu\h'+03'\c
130.\}
131.el \{\
132.sp -1
133.IP \(bu 2.3
134.\}
135FILENAME
136\- the name of the file that was used by the VFS operation
137.RE
138.sp
139.RS 4
140.ie n \{\
141\h'-04'\(bu\h'+03'\c
142.\}
143.el \{\
144.sp -1
145.IP \(bu 2.3
146.\}
147TIMESTAMP
148\- a timestamp, formatted as "yyyy\-mm\-dd hh\-mm\-ss\&.ms" indicating when the VFS operation occured
149.sp
150.RE
151.PP
152This module is stackable\&.
153.SH "OPTIONS"
154.PP
155smb_traffic_analyzer:mode = STRING
156.RS 4
157If STRING matches to "unix_domain_socket", the module will use a unix domain socket located at /var/tmp/stadsocket, if STRING contains an different string or is not defined, the module will use an internet domain socket for data transfer\&.
158.RE
159.PP
160smb_traffic_analyzer:host = STRING
161.RS 4
162The module will send the data to the system named with the hostname STRING\&.
163.RE
164.PP
165smb_traffic_analyzer:port = STRING
166.RS 4
167The module will send the data using the TCP port given in STRING\&.
168.RE
169.PP
170smb_traffic_analyzer:anonymize_prefix = STRING
171.RS 4
172The module will replace the user names with a prefix given by STRING and a simple hash number\&.
173.RE
174.PP
175smb_traffic_analyzer:total_anonymization = STRING
176.RS 4
177If STRING matches to \'yes\', the module will replace any user name with the string given by the option smb_traffic_analyzer:anonymize_prefix, without generating an additional hash number\&. This means that any transfer data will be mapped to a single user, leading to a total anonymization of user related data\&.
178.RE
179.SH "EXAMPLES"
180.PP
181The module running on share "example_share", using a unix domain socket
182.sp
183.if n \{\
184.RS 4
185.\}
186.nf
187 \fI[example_share]\fR
188 \m[blue]\fBpath = /data/example\fR\m[]
189 \m[blue]\fBvfs objects = smb_traffic_analyzer\fR\m[]
190 \m[blue]\fBsmb_traffic_analyzer:mode = unix_domain_socket\fR\m[]
191
192.fi
193.if n \{\
194.RE
195.\}
196.PP
197The module running on share "example_share", using an internet socket, connecting to host "examplehost" on port 3491\&.
198.sp
199.if n \{\
200.RS 4
201.\}
202.nf
203 \fI[example_share]\fR
204 \m[blue]\fBpath = /data/example\fR\m[]
205 \m[blue]\fBvfs objects = smb_traffic_analyzer\fR\m[]
206 \m[blue]\fBsmb_traffic_analyzer:host = examplehost\fR\m[]
207 \m[blue]\fBsmb_traffic_analyzer:port = 3491\fR\m[]
208
209.fi
210.if n \{\
211.RE
212.\}
213.PP
214The module running on share "example_share", using an internet socket, connecting to host "examplehost" on port 3491, anonymizing user names with the prefix "User"\&.
215.sp
216.if n \{\
217.RS 4
218.\}
219.nf
220 \fI[example_share]\fR
221 \m[blue]\fBpath = /data/example\fR\m[]
222 \m[blue]\fBvfs objects = smb_traffic_analyzer\fR\m[]
223 \m[blue]\fBsmb_traffic_analyzer:host = examplehost\fR\m[]
224 \m[blue]\fBsmb_traffic_analyzer:port = 3491\fR\m[]
225 \m[blue]\fBsmb_traffic_analyzer:anonymize_prefix = User\fR\m[]
226
227.fi
228.if n \{\
229.RE
230.\}
231.SH "VERSION"
232.PP
233This man page is correct for version 3\&.3 of the Samba suite\&.
234.SH "AUTHOR"
235.PP
236The 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\&.
237.PP
238The original version of the VFS module and the helper tools were created by Holger Hetterich\&.
Note: See TracBrowser for help on using the repository browser.