logconv(1)

logconv1

Analyzes directory server access log files

Usage

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)]

Overview

Analyzes Directory Server access log files for specific information defined on the command line.

Options

-h, --help

help/usage.

-v, --version

Display log analyzer version.

-V, --verbose

Enable verbose mode for detailed statistic processing.

-s, --sizeLimit SIZE_LIMIT

Number of results to return per category.
DEFAULT: 20

-d, --rootDN ROOT_DN

Directory Managers DN.
DEFAULT: "cn=Directory Manager"

-B, --bind BIND_DN

Generates an activity report based specified bind DN.
Options: <ALL | ANONYMOUS | "Actual bind DN">

-X, --excludeIP EXCLUDE_IP

IP address to exclude from analysis, could be used to exclude load balancers.
To specify multiple IP addresses you could use: -X 192.168.1.1 -X 10.1.2.1

-S, --startTime START_TIME

Time to begin analysing 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

Time to stop analysing 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

Capture operation stats at second intervals and write to csv file.

-M, --reportFileMins MIN_STATS_FILENAME

Capture operation stats at minute intervals and write to csv file.

-j, --recommends

Provide some preformance recommendations post analysis.

Usage

Examples:

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*

Releases

7 releases since Debian 2.2 (Potato); the text changed 4 times.

  1. 2.2
  2. 8
  3. 9–10
  4. 11–12
  5. 13

--bind since Debian 13 (Trixie); --endTime since Debian 13 (Trixie); --excludeIP since Debian 13 (Trixie); --help since Debian 8 (Jessie); --recommends since Debian 13 (Trixie); --reportFileMins since Debian 13 (Trixie); --reportFileSecs since Debian 13 (Trixie); --rootDN since Debian 13 (Trixie); --sizeLimit since Debian 13 (Trixie); --startTime since Debian 13 (Trixie); --verbose since Debian 13 (Trixie); --version since Debian 13 (Trixie); -B since Debian 13 (Trixie); -E since Debian 13 (Trixie); -M since Debian 13 (Trixie); -S since Debian 13 (Trixie); -V since Debian 13 (Trixie); -X since Debian 13 (Trixie); -d since Debian 13 (Trixie); -h since Debian 8 (Jessie); -j since Debian 13 (Trixie); -m since Debian 13 (Trixie); -s since Debian 13 (Trixie); -v since Debian 13 (Trixie).

Author

logconv.py was written by the 389 Project.

Reporting bugs

Report bugs to https://github.com/389ds/389-ds-base/issues/new

From 389-ds-base 3.1.2+dfsg1-1+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.