1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "LOG2PCAP" 1 "" "" ""
22 log2pcap \- Extract network traces from Samba log files
27 \fBlog2pcap\fR [\-h] [logfile] [pcap_file]
34 This tool is part of the \fBSamba\fR(7) suite\&.
37 \fBlog2pcap\fR reads in a samba log file and generates a pcap file (readable by most sniffers, such as ethereal or tcpdump) based on the packet dumps in the log file\&.
40 The log file must have a \fIlog level\fR of at least \fB5\fR to get the SMB header/parameters right, \fB10\fR to get the first 512 data bytes of the packet and \fB50\fR to get the whole packet\&.
46 If this parameter is specified the output file will be a hex dump, in a format that is readable by the text2pcap utility\&.
51 Samba log file\&. log2pcap will try to read the log from stdin if the log file is not specified\&.
56 Name of the output file to write the pcap (or hexdump) data to\&. If this argument is not specified, output data will be written to stdout\&.
61 Print a summary of command line options\&.
67 Extract all network traffic from all samba log files:
73 $ cat /var/log/* | log2pcap > trace\&.pcap
78 Convert to pcap using text2pcap:
84 $ log2pcap \-h samba\&.log | text2pcap \-T 139,139 \- trace\&.pcap
91 This man page is correct for version 3\&.0 of the Samba suite\&.
96 Only SMB data is extracted from the samba logs, no LDAP, NetBIOS lookup or other data\&.
99 The generated TCP and IP headers don't contain a valid checksum\&.
104 \fBtext2pcap\fR(1), \fBethereal\fR(1)
109 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\&.
112 This manpage was written by Jelmer Vernooij\&.