Apple Mac OS X Server Spezifikationen Seite 29

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 88
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 28
Chapter 2 Working with Web Service 29
Viewing Web Service Logs
Use Server Admin to view the error and access logs for Web service, if you enabled
them. Web service in Mac OS X Server uses the standard Apache log format, so you
can also use a third-party log analysis tool to interpret the log data.
To view logs:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select Web.
4 Click Logs, then choose between an access or error log by selecting the log from
the list of logs.
To search for specic entries, use the Filter eld in the lower right.
From the command line:
To view the latest entries in a log: m
$ tail log-file
To see where the current error and activity logs for each site are located, use the
serveradmin getLogPaths command.
To view log paths: m
$ sudo serveradmin command web:command = getLogPaths
To display a log of periodic samples of the number of requests, cache performance, m
and data throughput:
$ sudo serveradmin command
web:command = getHistory
web:variant = statistic
web:timeScale = scale
Control–D
Parameter Description
statistic
The value you want to display. Valid values:
 v1—Number of requests per second
 v2—Throughput (bytes/sec)
 v3—Cache requests per second
 v4—Cache throughput (bytes/sec)
scale
The length of time in seconds, ending with the
current time you want to see samples for.
For example, to see 30 minutes of data, specify
qtss:timeScale = 1800.
Seitenansicht 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 87 88

Kommentare zu diesen Handbüchern

Keine Kommentare