<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/source3/script/samba-log-parser, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>s3:script: Avoid UnicodeDecodeError for samba-log-parser processing whole directory</title>
<updated>2025-09-09T13:50:00+00:00</updated>
<author>
<name>Pavel Filipenský</name>
<email>pfilipensky@samba.org</email>
</author>
<published>2025-07-09T20:38:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f636bd3ec08271e79feea6cdd48e48da2af5b1d8'/>
<id>f636bd3ec08271e79feea6cdd48e48da2af5b1d8</id>
<content type='text'>
When log directory contains zipped files like
old/log.rpcd_spoolss-20250831.gz we get error.
We want to ignore such files.

$ samba-log-parser --traceid 6 --merge-by-timestamp
Traceback (most recent call last):
  File "/usr/bin/samba-log-parser", line 382, in &lt;module&gt;
    main()
    ~~~~^^
  File "/usr/bin/samba-log-parser", line 311, in main
    process_file(
    ~~~~~~~~~~~~^
        record_list,
        ^^^^^^^^^^^^
    ...&lt;3 lines&gt;...
        options.traceid,
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/bin/samba-log-parser", line 92, in process_file
    data = infile.readlines()
  File "&lt;frozen codecs&gt;", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Signed-off-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;

Autobuild-User(master): Pavel Filipensky &lt;pfilipensky@samba.org&gt;
Autobuild-Date(master): Tue Sep  9 13:50:00 UTC 2025 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When log directory contains zipped files like
old/log.rpcd_spoolss-20250831.gz we get error.
We want to ignore such files.

$ samba-log-parser --traceid 6 --merge-by-timestamp
Traceback (most recent call last):
  File "/usr/bin/samba-log-parser", line 382, in &lt;module&gt;
    main()
    ~~~~^^
  File "/usr/bin/samba-log-parser", line 311, in main
    process_file(
    ~~~~~~~~~~~~^
        record_list,
        ^^^^^^^^^^^^
    ...&lt;3 lines&gt;...
        options.traceid,
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/bin/samba-log-parser", line 92, in process_file
    data = infile.readlines()
  File "&lt;frozen codecs&gt;", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Signed-off-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;

Autobuild-User(master): Pavel Filipensky &lt;pfilipensky@samba.org&gt;
Autobuild-Date(master): Tue Sep  9 13:50:00 UTC 2025 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:script: Replace --merge by --merge-by-timestamp in samba-log-parser</title>
<updated>2023-07-20T19:14:05+00:00</updated>
<author>
<name>Pavel Filipenský</name>
<email>pfilipensky@samba.org</email>
</author>
<published>2023-06-28T12:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=ca5cc05b22bf92dd7236d2c0d4a424340a0048f3'/>
<id>ca5cc05b22bf92dd7236d2c0d4a424340a0048f3</id>
<content type='text'>
For --merge-by-timestamp the traces do not need to contain the traceid
header field.

Signed-off-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;

Autobuild-User(master): Pavel Filipensky &lt;pfilipensky@samba.org&gt;
Autobuild-Date(master): Thu Jul 20 19:14:05 UTC 2023 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For --merge-by-timestamp the traces do not need to contain the traceid
header field.

Signed-off-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;

Autobuild-User(master): Pavel Filipensky &lt;pfilipensky@samba.org&gt;
Autobuild-Date(master): Thu Jul 20 19:14:05 UTC 2023 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:script: Add samba-log-parser</title>
<updated>2023-06-07T14:12:33+00:00</updated>
<author>
<name>Pavel Filipenský</name>
<email>pfilipensky@samba.org</email>
</author>
<published>2023-02-09T15:48:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=c9fa3dff8ca38d27b6452c6b854e45ec44de4932'/>
<id>c9fa3dff8ca38d27b6452c6b854e45ec44de4932</id>
<content type='text'>
Signed-off-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Pair-Programmed-With: Andreas Schneider &lt;asn@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Pair-Programmed-With: Andreas Schneider &lt;asn@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
