logconv.pl1
Analyzes directory server access log files
Usage
logconv.pl [-h]
[-d
<rootDN>]
[-s
<size
limit>]
[-v]
[-V]
[-S
<start
time>]
[-E
<end
time>]
[-T
<min
etime>]
[-efcibaltnxgjuU]
[access
log ... ...]
Overview
Analyzes Directory Server access log files for specific information defined on the command line
Options
A summary of options is included below:
-
-h, --help -
help/usage
- -d, --rootDN <Directory Managers DN>
-
DEFAULT -> cn=directory manager
- -D, --data <Location for temporary data files>
-
DEFAULT -> /tmp
TIP -> If there is enough RAM, a RAM disk can be used instead:mkdir /dev/shm/logconv, and use this directory for the "-D" value.
- -s, --sizeLimit <Number of results to return per category>
-
DEFAULT -> 20
- -X, --excludeIP <IP address to exclude from connection stats>
-
E.g. Load balancers
- -v, --version show version of tool
-
Print version of the tool
- -S, --startTime <time to begin analyzing logfile from>
-
Time to begin analyzing logfile from E.g. [28/Mar/2002:13:14:22
-0800]
- -E, --endTime <time to stop analyzing logfile>
-
Time to stop analyzing logfile from E.g. [28/Mar/2002:13:24:62
-0800]
- -T, --minEtime <minimum etime to report unindexed searches>
-
The minimum etime that is required to record and report on an unindexed search. Default is zero.
- -M, --reportFileMins <CSV output file>
-
This option creates a CSV report for spreadsheets.
- -m, --reportFileSecs <CSV output file>
-
This option creates a CSV report for spreadsheets.
- -B, --bind <ALL | ANONYMOUS | Bind DN >
-
This generates a report based on either ALL bind dn's, anonymous binds, or a specific DN.
- -V, --verbose <enable verbose output - includes all stats listed below except U>
-
Verbose output
-[efcibaltnxgjuU]-
eError Code stats
fFailed Login Stats
cConnection Code Stats
iClient Stats
bBind Stats
aSearch Base Stats
lSearch Filter Stats
tEtime Stats
nNentries Stats
xExtended Operations
rMost Requested Attribute Stats
gAbandoned Operation Stats
jRecommendations
uUnindexed Search Stats (very detailed)
yConnection Latency Stats
pOpen Connection ID Stats
U Unindexed Search Summary
Usage
Examples:
-
logconv.pl
-s10-Vaccess
-
logconv.pl
-d"cn=directory manager" /var/log/dirsrv/slapd-host/access*
-
logconv.pl
-s50-ibgjuaccess*
-
logconv.pl
-S"[28/Mar/2002:13:14:22-0800]"-E"[28/Mar/2002:13:50:05-0800]"-eaccess