LOGCONV.PY(1)
π LOGCONV.PY β the manual, but make it cute π
okay bestie, gather round π«Ά this is the manual page for logconv.py, living in section 1 of the General Commands Manual. Yes it's a shell command. Yes it's a whole vibe. Let's get into it β¨
πΈ NAME πΈ
logconv.py β literally analyzes Directory Server access log files. that's it. that's the job. π
β¨ SYNOPSIS β¨
logconv.py [-h] [-v] [-V] [-s SIZE_LIMIT] [-d ROOT_DN] [-B BIND_DN] [-X
EXCLUDE_IP] [-S START_TIME] [-E END_TIME] [-m SEC_STATS_FILENAME] [-M
MIN_STATS_FILENAME] [ access log(s)]
(that line wrapping? not real, it's just the terminal being a drama queen. the options are all real tho π)
π¦ DESCRIPTION π¦
It analyzes Directory Server access log files for the specific info you defined on the command line. no cap. you tell it what you wanna know, it goes and finds it. π΅οΈββοΈ
π OPTIONS π
-h,--helpβ help/usage. the classic. when in doubt, ask for help π-v,--versionβ shows you the log analyzer version. so you know which era of this software you're living in β-V,--verboseβ turns on verbose mode for detailed statistic processing. it's giving "tell me EVERYTHING" energy π-s,--sizeLimit SIZE_LIMITβ how many results to return per category. DEFAULT:20. that's the number, that's the default, don't come for me π-d,--rootDN ROOT_DNβ the Directory Manager's DN. DEFAULT:"cn=Directory Manager"π-B,--bind BIND_DNβ generates an activity report based on the specified bind DN. Options:<ALL | ANONYMOUS | "Actual bind DN">β so pick your fighter π-X,--excludeIP EXCLUDE_IPβ an IP address to exclude from the analysis, which lowkey is perfect for excluding load balancers. To specify multiple IP addresses you could use:-X 192.168.1.1 -X 10.1.2.1π-S,--startTime START_TIMEβ the time to begin analysing the logfile from. Copy and paste a timestamp from the access logs:"[04/Jun/2024:10:31:20.014629085 +0200]"or use common log format:"[04/Jun/2024:10:31:20 +0200]"'β°-E,--endTime END_TIMEβ the time to stop analysing the logfile. Copy and paste a timestamp from the access logs:"[04/Jun/2024:11:30:05.435779416 +0200]"or use common log format:"[04/Jun/2024:11:30:05 +0200]"π-m,--reportFileSecs SEC_STATS_FILENAMEβ captures operation stats at second intervals and writes them to a csv file. so many data points, so little time π-M,--reportFileMins MIN_STATS_FILENAMEβ captures operation stats at minute intervals and writes them to a csv file. chiller pace, same energy π§-j,--recommendsβ provides some preformance recommendations post analysis. yes. post. analysis. glow-up advice for your server β¨
π USAGE π
Examples, aka the receipts πΈ:
Analyze logs in verbose mode
logconv.py -V /var/log/dirsrv/slapd-host/access*
Limit results to 10 entries per category
logconv.py --sizeLimit 10 /var/log/dirsrv/slapd-host/access*
Specify a custom root DN
logconv.py --rootDN "cn=custom manager" /var/log/dirsrv/slapd-host/access*
Generate a report for anonymous binds
logconv.py -B ANONYMOUS /var/log/dirsrv/slapd-host/access*
Exclude specific IP address(s) from log analysis
logconv.py -X 192.168.1.1 --exclude_ip 11.22.33.44 /var/log/dirsrv/slapd-host/access*
Analyze logs within a specific time range
logconv.py -S "[04/Jun/2024:10:31:20.014629085 +0200]" --endTime "[04/Jun/2024:11:30:05 +0200]" /var/log/dirsrv/slapd-host/access*
Generate performance stats at second intervals
logconv.py -m log-second-stats.csv /var/log/dirsrv/slapd-host/access*
Generate performance stats at minute intervals
logconv.py -M log-minute-stats.csv /var/log/dirsrv/slapd-host/access*
Display recommendations post log analysis
logconv.py -j /var/log/dirsrv/slapd-host/access*
π AUTHOR π
logconv.py was written by the 389 Project. respect the architects π«‘
π¨ REPORTING BUGS π¨
Found a bug? not the vibe, but okay, we fix it. Report bugs to https://github.com/389ds/389-ds-base/issues/new π₯
β COPYRIGHT β
Copyright Β© 2001 Sun Microsystems, Inc. Used by permission.
Copyright Β© 2025 Red Hat, Inc.
This manual page was written by Michele Baldessari <michele@pupazzo.org>, for the Debian project (but may be used by others).
This is free software. You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this software distribution. This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution. periodt. π
ngl the whole thing is free software and that's iconic of it π
okay that's the whole page bestie, tysm for reading, love you, bye π«Άπ
logconv.py, section 1, from the General Commands Manual, dated January 22, 2025 β signing off, mwah πβ¨
π¦ where this page comes from
- debian trixie: 389-ds-base 3.1.2+dfsg1-1+deb13u1 Β· GPL-3.0-or-later AND Other
- ubuntu questing: 389-ds-base 3.1.2+dfsg1-1
- ubuntu resolute: 389-ds-base 3.1.2+vendor1-2 Β· GPL-3.0-or-later AND Other
- ubuntu stonking: 389-ds-base 3.3.1-3 Β· GPL-3.0-or-later AND Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms