Discussion:
reading the log file
Itay Moav
2010-04-01 13:51:51 UTC
Permalink
Hi,

I see under /var/lib/ldap the file log.000000001 which seems to be a binary
file.
How do I read it, or is there a different way to see a log of what the
server does (something like the mysql.log)

Thanks
m***@aero.polimi.it
2010-04-01 16:10:43 UTC
Permalink
Post by Itay Moav
Hi,
I see under /var/lib/ldap the file log.000000001 which seems to be a binary
file.
How do I read it, or is there a different way to see a log of what the
server does (something like the mysql.log)
It's not binary, it's just encrypted. Did you use "encrypt_log_file" in
slapd.conf? In any case, you should be able to read it using something
like "slapdecrypt log.000000001", provided you specify the correct cert
and key files in slapd.conf.

p.
Aaron Richton
2010-04-01 16:17:20 UTC
Permalink
I see under /var/lib/ldap the file log.000000001 which seems to be a binary file.
How do I read it, or is there a different way to see a log of what the server does (something like the mysql.log)
Those are Berkeley DB transaction logs; they're not a good indicator of
slapd activity. Read the slapd.conf(5) man page, paying particular
attention to the loglevel directive.
Owen Marshall
2010-04-01 15:55:09 UTC
Permalink
Post by Itay Moav
I see under /var/lib/ldap the file log.000000001 which seems to be a
binary file.
How do I read it, or is there a different way to see a log of what the
server does (something like the mysql.log)
Those log files are transaction logs used by the database backend. You
don't want to read those.

Instead, look at the olcLogFile directive to see where logs are
pointing.

Note also that if you built with syslog support, the syslog daemon will
also be handling your slapd logs. IIRC, it logs to local4.
--
Owen Marshall
FacilityONE
***@facilityone.com | (502) 805-2126
Klaus Lemkau
2010-04-01 16:13:59 UTC
Permalink
Hi
Post by Itay Moav
Hi,
I see under /var/lib/ldap the file log.000000001 which seems to be a
binary file.
That are transaction-logs of the database; see
http://www.openldap.org/doc/admin24/maintenance.html#Berkeley DB Logs
You should not touch them.
Post by Itay Moav
How do I read it, or is there a different way to see a log of what the
server does (something like the mysql.log)
normaly You should look in /var/log/syslog
(depending on Your configuration)

see man slapd
=> section logfile and loglevel
and Adminguide
http://www.openldap.org/doc/admin24/slapdconf2.html

-- Klaus Lemkau
Post by Itay Moav
Thanks
Loading...