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
On Thu, 2010-04-01 at 09:51 -0400, Itay Moav wrote:
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.
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.
Hi Am 01.04.2010 15:51, schrieb 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.
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
Thanks
On Thu, 1 Apr 2010, Itay Moav wrote:
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.
openldap-software@openldap.org