1 <?xml version="1.0" encoding="utf-8"?>
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="samba-log-parser.1">
6 <refentrytitle>samba-log-parser</refentrytitle>
7 <manvolnum>1</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refmiscinfo class="version">&doc.version;</refmiscinfo>
15 <refname>samba-log-parser</refname>
16 <refpurpose>Samba (winbind) trace parser.</refpurpose>
19 -h, --help show this help message and exit
20 --traceid ID specify the traceid of the trace records
21 --pid PID specify the pid of winbind client
22 --breakdown breakdown the traces into per traceid files
23 --merge-by-timestamp merge logs by timestamp
24 --flow show the request/sub-request flow traces
25 --flow-compact show the request/sub-request flow traces without dcerpc details
29 <command>samba-log-parser</command>
30 <arg choice="req">path</arg>
31 <arg choice="opt">--pid=PID</arg>
32 <arg choice="opt">--traceid=ID</arg>
33 <arg choice="opt">--breakdown</arg>
34 <arg choice="opt">--merge-by-timestamp</arg>
35 <arg choice="opt">--flow</arg>
36 <arg choice="opt">--flow-compact</arg>
37 <arg choice="opt">-h|--help</arg>
42 <title>DESCRIPTION</title>
44 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
45 <manvolnum>7</manvolnum></citerefentry> suite.</para>
47 <para>The <command>samba-log-parser</command> program parses samba winbind
53 <title>OPTIONS</title>
55 <para>The following options are available to the <command>samba-log-parser</command> program.
60 <term>--pid=PID</term>
61 <listitem><para>Display traces for winbind client with the matching PID.
66 <term>--traceid=ID</term>
67 <listitem><para>Display traces with matching traceid debug header field.
72 <term>--breakdown</term>
73 <listitem><para>Break down all traces to separate files in the current
74 working directory. For each traceid, three files are created:
82 <term>--merge-by-timestamp</term>
83 <listitem><para>Sort the trace lines according to the timestamp.
84 Works with log files without traceid header field as well.
91 <listitem><para>Display the request/sub-request flow.
96 <term>--flow-compact</term>
97 <listitem><para>Display the request/sub-request flow without dcerpc
107 <title>EXAMPLES</title>
109 <para>Show the flow traces for trace id
110 <parameter>1234</parameter> from log file log.winbind:
113 # samba-log-parser --traceid 1234 --flow /var/log/samba/log.winbind
116 <para>Show the full traces for winbind client with PID
117 <parameter>999999</parameter>
118 sorted using the timestamp for log files found in the samba log directory:
122 # samba-log-parser --pid 999999 --merge-by-timestamp /var/log/samba
125 <para>Break down the traces into separate files according to traceid sorted
126 using the timestamp for log files found in the samba log directory:
130 # samba-log-parser --breakdown --merge-by-timestamp /var/log/samba
133 <para>Sort traces using the timestamp for log files found in the samba log
134 directory. Traces do not need to contain the traceid header field.
138 # samba-log-parser --merge-by-timestamp /var/log/samba
143 <title>VERSION</title>
145 <para>This man page is part of version &doc.version; of the Samba suite.</para>
149 <title>AUTHOR</title>
150 <para>The original Samba software and related utilities
151 were created by Andrew Tridgell. Samba is now developed
152 by the Samba Team as an Open Source project similar
153 to the way the Linux kernel is developed.</para>