Viewing Logs In The Command Line - Red Hat DIRECTORY SERVER 8.1 - USING THE ADMIN SERVER Using Instructions

Using the admin server
Table of Contents

Advertisement

2.4.2. Viewing Logs in the Command Line

The access log, by default, is at /var/log/dirsrv/admin-serv/access. To view the access log,
open it in an editor such as vi.
Access logs show connections to the Admin Server based on the IP address of the client, the
username, and the method that the request was sent. Each line has the following format:
ip_address - bind_DN [timestamp -0500] "GET|POST cgi" HTTP_response bytes
Example logs are shown in
127.0.0.1 - cn=directory manager [23/Dec/2008:19:32:52 -0500] "GET /admin-
serv/authenticate HTTP/1.0" 200 338
192.168.123.121 - cn=directory manager [23/Dec/2008:19:33:14 -0500] "POST /
admin-serv/tasks/Configuration/ServerSetup HTTP/1.0" 200 244
192.168.123.121 - cn=directory manager [23/Dec/2008:19:33:16 -0500] "GET /
admin-serv/tasks/Configuration/ReadLog?op=count&name=access HTTP/1.0" 200
10
Example 2.1. Example Access Logs
The error log, by default, is at /var/log/dirsrv/admin-serv/errors. To view the error log,
open it in an editor such as vi.
Error logs record any problem response from the Admin Server. Like the access log, error logs also
records entries based the client's IP address, along with the type of error message, and the message
text:
[timestamp] [severity] [client ip_address error_message
The severity message indicates whether the error is critical enough for administrator intervention.
[warning], [error], and [critical] require immediate administrator action. Any other severity
means the error is informational or for debugging.
Example logs are shown in
Example 2.1, "Example Access
Example 2.2, "Example Error
Viewing Logs in the Command Line
Logs".
Logs".
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

8.1

Table of Contents