[0001]
[0002]
[0003]
[0004]
[0005]
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
[0101]
[0102]
[0103]
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119]
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131]
[0132]
[0133]
[0134]
[0135]
[0136]
[0137]
[0138]
[0139]
[0140]
[0141]
[0142]
[0143]
[0144]
[0145]
[0146]
[0147]
[0148]
[0149]
[0150]
[0151]
[0152]
[0153]
[0154]
[0155]
[0156]
[0157]
[0158]
[0159]
[0160]
[0161]
[0162]
[0163]
[0164]
[0165]
[0166]
[0167]
[0168]
[0169]
[0170]
[0171]
[0172]
[0173]
[0174]
[0175]
[0176]
[0177]
[0178]
[0179]
[0180]
[0181]
[0182]
[0183]
[0184]
[0185]
[0186]
[0187]
[0188]
[0189]
[0190]
[0191]
[0192]
[0193]
[0194]
[0195]
[0196]
[0197]
[0198]
[0199]
[0200]
[0201]
[0202]
[0203]
[0204]
[0205]
[0206]
[0207]
[0208]
[0209]
[0210]
[0211]
[0212]
[0213]
[0214]
[0215]
[0216]
[0217]
[0218]
[0219]
[0220]
[0221]
[0222]
[0223]
[0224]
[0225]
[0226]
[0227]
[0228]
[0229]
[0230]
[0231]
[0232]
[0233]
[0234]
[0235]
[0236]
[0237]
[0238]
[0239]
[0240]
[0241]
[0242]
[0243]
[0244]
[0245]
[0246]
[0247]
[0248]
[0249]
[0250]
[0251]
[0252]
[0253]
[0254]
[0255]
[0256]
[0257]
[0258]
[0259]
[0260]
[0261]
[0262]
[0263]
[0264]
[0265]
[0266]
[0267]
[0268]
[0269]
[0270]
[0271]
[0272]
[0273]
[0274]
[0275]
[0276]
[0277]
[0278]
[0279]
[0280]
[0281]
[0282]
[0283]
[0284]
[0285]
[0286]
[0287]
[0288]
[0289]
[0290]
[0291]
[0292]
[0293]
[0294]
[0295]
[0296]
[0297]
[0298]
[0299]
[0300]
[0301]
[0302]
[0303]
[0304]
[0305]
[0306]
[0307]
[0308]
[0309]
[0310]
[0311]
[0312]
[0313]
[0314]
[0315]
[0316]
[0317]
[0318]
[0319]
[0320]
[0321]
[0322]
[0323]
[0324]
[0325]
[0326]
[0327]
[0328]
[0329]
[0330]
[0331]
[0332]
[0333]
[0334]
[0335]
[0336]
[0337]
[0338]
[0339]
[0340]
[0341]
[0342]
[0343]
[0344]
[0345]
[0346]
[0347]
[0348]
[0349]
[0350]
[0351]
[0352]
[0353]
[0354]
[0355]
[0356]
[0357]
[0358]
[0359]
[0360]
[0361]
[0362]
[0363]
[0364]
[0365]
[0366]
[0367]
[0368]
[0369]
[0370]
[0371]
[0372]
[0373]
[0374]
[0375]
[0376]
[0377]
[0378]
[0379]
[0380]
[0381]
[0382]
[0383]
[0384]
[0385]
[0386]
[0387]
[0388]
[0389]
[0390]
[0391]
[0392]
[0393]
[0394]
[0395]
[0396]
[0397]
[0398]
[0399]
[0400]
[0401]
[0402]
[0403]
[0404]
[0405]
[0406]
[0407]
[0408]
[0409]
[0410]
[0411]
[0412]
[0413]
[0414]
[0415]
[0416]
[0417]
[0418]
[0419]
[0420]
[0421]
[0422]
[0423]
[0424]
[0425]
[0426]
[0427]
[0428]
[0429]
[0430]
[0431]
[0432]
[0433]
[0434]
[0435]
[0436]
[0437]
[0438]
[0439]
[0440]
[0441]
[0442]
[0443]
[0444]
[0445]
[0446]
[0447]
[0448]
[0449]
[0450]
[0451]
[0452]
[0453]
[0454]
[0455]
[0456]
[0457]
[0458]
[0459]
[0460]
[0461]
[0462]
[0463]
[0464]
[0465]
[0466]
[0467]
[0468]
[0469]
[0470]
[0471]
[0472]
[0473]
[0474]
[0475]
[0476]
[0477]
[0478]
[0479]
[0480]
[0481]
[0482]
[0483]
[0484]
[0485]
[0486]
[0487]
[0488]
[0489]
[0490]
[0491]
[0492]
[0493]
[0494]
[0495]
[0496]
[0497]
[0498]
[0499]
[0500]
[0501]
[0502]
[0503]
[0504]
[0505]
[0506]
[0507]
[0508]
[0509]
[0510]
[0511]
[0512]
[0513]
[0514]
[0515]
[0516]
[0517]
[0518]
[0519]
[0520]
[0521]
[0522]
[0523]
[0524]
[0525]
[0526]
[0527]
[0528]
[0529]
[0530]
[0531]
[0532]
[0533]
[0534]
[0535]
[0536]
[0537]
[0538]
[0539]
[0540]
[0541]
[0542]
[0543]
[0544]
[0545]
[0546]
[0547]
[0548]
[0549]
[0550]
[0551]
[0552]
[0553]
[0554]
[0555]
[0556]
[0557]
[0558]
[0559]
[0560]
[0561]
[0562]
[0563]
[0564]
[0565]
[0566]
[0567]
[0568]
[0569]
[0570]
[0571]
[0572]
[0573]
[0574]
[0575]
[0576]
[0577]
[0578]
[0579]
[0580]
[0581]
[0582]
[0583]
[0584]
[0585]
[0586]
[0587]
[0588]
[0589]
[0590]
[0591]
[0592]
[0593]
[0594]
[0595]
[0596]
[0597]
[0598]
[0599]
[0600]
[0601]
[0602]
[0603]
[0604]
[0605]
[0606]
[0607]
[0608]
[0609]
[0610]
[0611]
[0612]
[0613]
[0614]
[0615]
[0616]
[0617]
[0618]
[0619]
[0620]
[0621]
[0622]
[0623]
[0624]
[0625]
[0626]
[0627]
[0628]
|1WATCH Facility||

|^ The WATCH facility is a powerful adjunct in server administration. From the
Server Administration facility (|link|Server Administration||) it provides an
|*online, real-time,  in-browser-window view of request processing in the
running server||. The ability to observe live request processing on an ad hoc
basis, without changing server configuration or shutting-down/restarting the
server process, makes this facility a great configuration and problem
resolution tool. It allows (amongst other uses)

|simple#|
|& assessment of mapping rules
|& assessment of authorization rules
|& investigation of request processing problems
|& observation of script interaction
|& general observation of server behaviour
|!simple|

|^ A single client per server process can access the WATCH facility at any
one time.  It can be used in one of two modes.

|bullet|

|item| As a |/one-shot||, one-off WATCH of a particular request.  This is
available from the |/Request Report| page of the Server Administration
facility.  In this case the single indicated request is tagged to be WATCHed
in all categories (see below) for the duration of the request (or until the
client stops WATCHing).

|item| As described in the following chapter the server and all new requests
being processed are candidates for being WATCHed.  Categories are selected
before initiating the WATCH and the report can be generated for a
user-specified number of seconds or aborted at any time using the browser's
|/stop| button.

|!bullet|

|^ Options immediately below the duration selector allows the WATCH output
to concurrently be included in the server process log.  This allows a permanent
record (at least as permanent as server logs) to be simply produced.

|2Server Instances|

|^ With a single instance (see |link|Server Instances||) access to WATCH is
always through the one server process.  If multiple instances are configured
WATCH requests, in common with all others, will be serviced by any one of the
associated processes depending on the momentary state of the round-robin
distribution.

|^ This is often an issue for request WATCHing.  The simplest scenario
involves two instances.  When the WATCH report is activated it will be serviced
by the first process, when the request wishing to be WATCHed is accessed it (in
the absence of any other server activity) will be serviced by the other process
and will not be reported by WATCH on the first.

|^ The solution is to suspend the round-robin request processing for the period
of the WATCH activity.  This does not shut any instance down but instead makes
all but the supervisor instance quiescent.  (Technically, it dequeues all the
listening I/Os from non-supervisor instance server sockets, making the TCP/IP
network driver send all connection requests to the one instance left with
listening I/Os.)  It is just a matter of making the non-supervisor instances
active again when the WATCH activity is concluded.

|^ This may be done from the command-line using

|code|
$ HTTPD /DO=INSTANCE=PASSIVE
$ HTTPD /DO=INSTANCE=ACTIVE
|!code|
 or using the Server Administration facility
(|\|link|<REFERENCE>(cr_server_admin)||) where there are [Active] and [Passive] buttons
available when multiple instances are in use.  Neither transition disrupts any
requests being established or in-progress.

|2Event Categories|

|^ An |/event| is considered any significant point for which the server code
has a reporting call provided. These have been selected to provide maximum
information with minimum clutter and impact on server performance. Obvious
examples are connection acceptance and closure, request path resolution, error
report generation, network reads and writes, etc. Events are collected together
into groupings to allow clearly defined areas of interest to be selected for
reporting.

|image%%|./watch.png|

|^ The report menu provides for the inclusion of any combination of the
following categories.

|0Request|

|bullet|

|item| |*Processing |-| |
Each major step in a request's progress.  For example, path resolution and
final response status.

|item| |*Header |-| |
Provides the HTTP request header as a section of blank-line terminated text.

|item| |*Body |-| |
The content (if a POST or PUT method) of the request.   This is provided as a
hexadecimal dump on the  left and with printable characters rendered on the
right, 32 bytes per line.

|!bullet|

|0Response|

|bullet|

|item| |*Processing |-| |
Each major step in generating a response to the request. These generally
reflect calls to a major server module such as file CACHE, FILE access,
INDEX-OF, SSI processing, etc. One or more of these events may occur for each
request. For instance a directory listing will show an INDEX-OF call and then
usually a FILE call as any read-me file is accessed.

|item| |*Header |-| |
The blank-line terminated HTTP header to the response. Only server-generated
headers are included. Scripts that provide a full HTTP stream do not have the
header explicitly reported. The response body category must be enabled to
observe these (indicated by a STREAM notation).

|item| |*Body |-| |
The content of the response.   This is provided as a hexadecimal dump on the
left and with printable characters rendered on the right, 32 bytes per line.
Some requests also generate very large responses which will clutter output.
Generally this category would be used when investigating specific request
response body problems.

|!bullet|

|0General|

|bullet|

|item| |*Connection |-| |
Each TCP/IP connection acceptance and closure. The connect shows which service
the request is using (scheme, host name and port).

|item| |*Path Mapping |-| |
This, along with the authorization report, provides one of the most useful
aspects of the WATCH facility. It comprises an event line indicating the path
to be mapped (it can also show a VMS file specification if a |/reverse-mapping|
has been requested). Then as each rule is processed a summary showing current
path, match "Y"/"N" for each path template and any conditional, then the result
and conditional. Finally an event entry shows the resulting path, VMS file
specification, any script name and specification resolved. The path mapping
category allows the administrator to directly assess mapping rule processing
with live or generated traffic.

|item| |*Authorization |-| |
When authorization is deployed this category shows the rules examined to
determine if a path is controlled, any authentication events in assessing
username and password, and the consequent group, user and request capabilities
(read and/or write) for that path.  No password information is displayed.

|item| |*Error |-| |
The essential elements of a request error report are displayed. This may
include a VMS status value and associated system message.

|item| |*CGI |-| |
This category displays the generated CGI variable names and values as used by
various forms of scripting and by SSI documents, as well as the processing of
the response header returned by scripts.

|item| |*DCL |-| |
Debugging scripts can sometimes present particular difficulties. This category
may help. It reports on all input/output streams with the process
(SYS$INPUT, SYS$OUTPUT, SYS$COMMAND, CGIPLUSIN).

|item| |*DECnet |-| |
For the same reason as above this category reports all DECnet scripting
input/output of the DECnet link. In particular, it allows the observation of
the OSU scripting protocol.

|item| |*WebDAV |-| |
Provides WebDAV specific processing points including request and meta-data XML
associated with resources.

|!bullet|

|0Network|

|bullet|

|item| |*Activity |-| |
For each raw network read and write the VMS status code and size of the I/O is
recorded.

|item| |*Data |-| |
For each raw network read or write the contents are provided as a hexadecimal
dump on the left and with printable characters rendered on the right, 32 bytes
per line.

|item| |*HTTP/2 |-| |
Provides a detailed overview of the underlying HTTP/2 framing and connection
management exchanges between client and server.  See |link|HTTP/2 and WATCH|
for further detail.

|!bullet|

|0Other|

|bullet|

|item| |*Logging |-| |
Access logging events include log open, close and flush, as well as request
entries.

|item| |*Match |-| |
Shows a significant level of detail during string matching activities.  May be
useful during mapping, authorization and conditional processing.

|item| |*Script |-| |
Sets CGI variable WATCH_SCRIPT allowing a script to explicitly detect this so
as to output specific debugging or other information when being WATCHed.

|item| |*SSL |-| |
If the Secure Sockets Layer image is in use this category provides a indication
of high-level activity.

|item| |*Internal |-| |
Includes information on other significant internal server processing.  Examples
are dictionary entries at various stages of request processing, and the
high-level timing and timeout events occuring within that processing and the
server in general.

|!bullet|

|0Proxy||

|bullet|

|item| |*Processing |-| |
Each major step during the serving of a proxied request.

|item| |*Request Header |-| |
The proxy server rebuilds the request originally received from the client. 
This category shows that rebuilt request, the one that is sent to the remote
server.

|item| |*Request Body |-| |
In the case of HTTP POST or PUT methods any request body is displayed.
This is provided as a hexadecimal dump on the left and with printable
characters rendered on the right, 32 bytes per line.

|item| |*Response Header |-| |
The blank-line terminated HTTP header to the response from the remote, proxied
server.

|item| |*Response Body |-| |
The content of the response sent from the remote server. This is provided as a
hexadecimal dump on the left and with printable characters rendered on the
right, 32 bytes per line.

|item| |*Rework |-| |
When reworking (see |link|Proxy Rework||) the string matching and substitution
is displayed.

|!bullet|

|0Code Modules|

|^ If the server has been compiled using the WATCH_MOD=1 macro a set of
module WATCHing statements is included.  These provide far more detailed
processing information than available with the generic WATCH, are intended
primarily for debugging the server during development and testing.  This is
considered a specialized tool, with the quantity and level of detail produced
most likely proving counter-productive in addressing general site configuration
issues.  The module items are shown below the usual WATCH items.

|2Request Filtering|
|^ By default all requests to all services are WATCHed. Fine control may be
exercised over exactly which requests are reported, allowing only a selected
portion of all requests being processed to be concentrated on, even on a live
and busy server. This is done by |/filtering| requests according the following
criteria.

|bullet|

|item| |*Protocol |-| |
The HTTP protocol being used to transport the request.  Multiple protocols may
be selected and concurrently filtered against.

|item| |*Client |-| |
The originating host name or address. Unless server DNS host name resolution
is enabled this must be expressed in dotted-decimal notation.
The |>> " |" <input type="checkbox" id="checkbox1"
name="checkbox1"><label for="checkbox1">moi</label>|| "||
checkbox filters on the WATCHing party's host address.

|item| |*Service |-| |
The service connected to. This includes the |/scheme| of the service (i.e.
"http:", "https:"), the host name (real or virtual), and the port. The host
name is the |/official| name of the service as reported during server startup.
As the port number is a essential part of the service specification it must
always be explicitly supplied or wildcarded.

|item| |*Request |-| |
This filter operates on the entire HTTP request header.  All fields supplied
with the request are available to be filtered against.  As this is a large,
multi-line dataset filters can become quite complex and regular expression (see 
|link%|../config/##String Matching++of++WASD Configuration||)
matching may be useful (see examples below).

|item| |*URI |-| |
This is the string provided by the client and specifying the requested
resource.  It includes the resource path along with any query string.  It can
contain URL-encoded (sometimes referred to as percent-encoded) characters. 
Some characters have alternate encodings, such as the space, as + or %20.

|item| |*Realm & User |-| |
This filters against request authentication information.  As authorization
occurs relatively late in request processing some data reported earlier by
WATCH will not be available.

|item| |*HTTP Status |-| |
This allows a class of response status (1 (informational), 2 (success), 3
(redirection), 4 (client error) and 5 (server error)) or a specific response
status (e.g. 200 (success), 404 (not found), 503 (service unavailable), etc.)
to be filtered into the WATCH report.  As this happens very late in request
processing the number of reported events are limited but may provide some
insight into particular processing problems.

|!bullet|

|^ In addition there are |*|/in| and |/out| selectors| against each of the
filters which include or exclude the particular request based on it matching
the filter.

|^ These filters are controlled using fully-specified, wildcarded strings or
using regular expression patterns (see 
|link%|../config/##Request processing Configuration++of++WASD Configuration||).
In common with all WASD processing, filter matching is case-insensitive.  Of
course, due to the point of application of a particular filter during request
processing, some information may or may not be displayed.  When a request is
into or out of the report because of a matching filter a FILTER informational
item is reported.

|0Examples|

|number|

|item| This first example shows various strings and patterns that could be
applied to the client filter.
|code|
alpha.example.com
*.example.com  
131.185.250.202
131.185.250.*
^10.68.250.*\|10.68.251.*
|!code|

|item| This example various filters applied to the service (virtual server).
|code|
beta.example.com:8000
beta.example.com:*
http://*
https:*
*:80
|!code|

|item| The request filter contains the entire HTTP request header.  This includes
multiple, newline-delimited fields.  Filtering can be simple or quite complex.
These examples filter all POST requests (either in or out of the report
depending on the respective selector), and all POSTs to the specified script
respectively.

|code|
POST *
POST /cgi-bin/example*
|!code|

|^ These are the equivalent regular expressions but also will stop comparing
at the end of the initial request line.  The second, in this case, will also
only filter against HTTP/1.1 version requests (note the final period matching
the <CR> of the <CR><LF> carriage control).

|code|
^^POST .*$
^^POST */cgi-bin/example *HTTP/1\\.1.$
|!code|

|^ This example uses a regular expression to constrain the match to a single
header field (line, or newline-delimited string), matching all requests where
the user agent reports using the "Gecko" browser component (Mozilla,
Firefox, etc.)

|code|
^^User-agent:.*Gecko.*$
|!code|

|item| The path and track filter.  The path contains a proxied origin server
request and so can be used to filter proxy requests to specific sites.
|code|
/wasd_root/src/*
/cgi-bin/*
/web/*/cyrillic/*
$ORoKJAOef8sAAAkuACc
http://proxied.host.name/*
|!code|

|item| The authentication filters, realm and user, can be used to select
requests for a particular authenticated user, all authenticated requests or all
non-authenticated requests, amongst other application.  The realm field allows
the authenticated user to be further narrowed as necessary.  All of the
following examples show only the user field with the default |/in| selector
set.

|^ Authenticated requests for user DANIEL. 

|code|
DANIEL
|!code|

|^ All authenticated requests. 
|code|
%*
|!code|

|!number|

|2Report Format|

|^ The following example illustrates the format of the WATCH report. It begins
with multi-line heading. The first two record the date, time and official
server name, with underline. The third provides the WASD server version.  The
fourth provides some TCP/IP agent information.  Lines following can show
OpenSSL version (if deployed), system information, server startup command-line,
and then current server process quotas.  The last three lines of the header
provide a list of the categories being recorded, the filters in use, and the
last, column headings described as follows: 

|simple#|
|item| |*time| the event was recorded
|item| the |*module| name of the originating source code
|item| the |*line| in the code module 
|item| a unique |*item| number for each thread being WATCHed
|item| event |*category| name
|item| free-form, but generally interpretable |*event| data
|!simple|

|image%%|./watchreport.png|

|^ Note that some items also include a block of data. The request header
category does this, providing the blank-line terminated text comprising the
HTTP header. Rule mapping also provides a block of information representing
each rule as it is interpreted. Generally WATCH-generated information can be
distinguished from other data by the uniform format and delimiting vertical
bars. Initiative and imagination is sometimes required to interpret the
free-form data but a basic understanding of HTTP serving and a little
consideration is generally all that is required to deduce the essentials of any
report.

|code|
01-NOV-2021 23:24:40  WATCH REPORT  x86vms.lan:80
-------------------------------------------------
HTTPD_SSL 12.0.0 31-OCT-2021 07:38:27.62 DKA100:[WASD_ROOT.][X86_64]HTTPD_SSL.EXE (28-OCT-2021 02:51:54.41)
HP TCPIP$IPC_SHR X6.0-12 (31-AUG-2021 20:01:12.49)
OpenSSL 1.1.1k  25 Mar 2021 (Tue Mar 30 04:14:48 2021 UTC) [SYS0.SYSCOMMON.SSL111.INCLUDE]*.H
SYS$COMMON:[SYSLIB]SSL111$LIBSSL_SHR32.EXE
$ CC (V8.4-2L1/70430528) /DECC /STAND=RELAXED_ANSI /PREFIX=ALL /NAMES=UPPER /OPTIMIZE /NODEBUG
/WARNING=(NOINFORM,DISABLE=(PREOPTW)) /FLOAT=IEEE /IEEE=DENORM
/DEFINE=(WASD_VMS_V7,SESOLA,WATCH_CAT=1,WATCH_MOD=0,WASD_ACME=1,WASD_GETSPI=1)
innotek GmbH VirtualBox with 2 CPUs and 3584MB running VMS V9.1-A (ODS-5 enabled, VMS NAML, VMS FIB, ODS-DIRECT enabled, ZLIB X00018292 (%RMS-E-FNF, file not found), REGEX enabled, lksb$b_valblk[64])
$ HTTPD /PRIORITY=4 /SYSUAF=(ID,SSL,PROXY)/PERSONA=RELAXED/PROFILE
AST:1978/2000 BIO:1984/2000 BYT:4026752/4999424 DIO:977/1000 ENQ:462/500 FIL:293/300 PGFL:345472/512000 PRC:0/100 TQ:98/100
DCL Scripting: detached, as HTTP$NOBODY, PERSONA enabled
Process: WASD:80 OTHER DKA100:[wasd_root.][startup]startup_server.com;1 DKA100:[wasd_root.][log_server]X86VMS_20211101015323.LOG;1
Instances: X86VMS::WASD:80
Watching: connect, request, req-header, response, error (539) via HTTP/2
Filter: NONE
\|Time_______\|Module__\|Line\|Item__\|Category__\|Event...\|
\|23:24:52.89 HTTP2REQ 0308 023002 CONNECT    HTTP/2 begin 23 with gort.lan,53801\|
\|++++++++++++++++++++++++++++++++++++++++++++
\|23:24:52.89 HTTP2REQ 0324 023002 REQ-HEADER HEADER 371 bytes\|
GET /httpd/-/admin/ HTTP/1.1
accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-encoding: br, gzip, deflate
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
accept-language: en-au
authorization: *******************************
host: x86vms.gets-it.net

\|23:24:52.89 REQUEST  3703 023002 REQ-HEADER DATA\|
ENTRY 001 [012] $ {12}request_line={28}GET /httpd/-/admin/ HTTP/1.1
ENTRY 002 [014] > {6}accept={63}text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ENTRY 003 [018] > {15}accept-encoding={17}br, gzip, deflate
ENTRY 004 .001. > {10}user-agent={119}Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
ENTRY 005 [007] > {15}accept-language={5}en-au
ENTRY 006 [031] > {13}authorization={30}******************************
ENTRY 007 [024] > {4}host={18}x86vms.gets-it.net
\|23:24:52.89 SERVICE  1747 023002 CONNECT    VIRTUAL x86vms.gets-it.net:443\|
\|23:24:52.89 REQUEST  4413 023002 REQUEST    GET /httpd/-/admin/\|
\|23:24:52.89 ADMIN    0265 023002 RESPONSE   ADMIN /httpd/-/admin/\|
\|23:24:52.89 REQUEST  1435 023002 REQUEST    STATUS 200 (OK) rx:106 tx:19536 bytes 10.000ms 1,964,219 B/s\|
\|--------------------------------------------
\|23:24:52.89 HTTP2REQ 1165 023002 CONNECT    HTTP/2 end 23 with gort.lan,53801\|
\|23:24:53.40 HTTP2REQ 0308 025002 CONNECT    HTTP/2 begin 25 with gort.lan,53801\|
\|++++++++++++++++++++++++++++++++++++++++++++
\|23:24:53.40 HTTP2REQ 0324 025002 REQ-HEADER HEADER 310 bytes\|
GET /rtt?ping HTTP/1.1
accept: */*
accept-encoding: br, gzip, deflate
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
accept-language: en-au
referer: https://x86vms.gets-it.net/httpd/-/admin/
host: x86vms.gets-it.net

\|23:24:53.40 REQUEST  3703 025002 REQ-HEADER DATA\|
ENTRY 001 [012] $ {12}request_line={22}GET /rtt?ping HTTP/1.1
ENTRY 002 [014] > {6}accept={3}*/*
ENTRY 003 [018] > {15}accept-encoding={17}br, gzip, deflate
ENTRY 004 .001. > {10}user-agent={119}Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
ENTRY 005 [007] > {15}accept-language={5}en-au
ENTRY 006 [013] > {7}referer={41}https://x86vms.gets-it.net/httpd/-/admin/
ENTRY 007 [024] > {4}host={18}x86vms.gets-it.net
\|23:24:53.40 ADMIN    4414 025002 CONNECT    RTT PING!\|
\|23:24:53.40 REQUEST  1435 025002 REQUEST    STATUS 204 (No Content) rx:60 tx:369 bytes 0.0s 0 B/s\|
\|--------------------------------------------
\|23:24:53.40 HTTP2REQ 1165 025002 CONNECT    HTTP/2 end 25 with gort.lan,53801\|
|!code|

|2Usage Suggestions|

|^ The following provides a brief explanation on the way WATCH operates and
any usage implications.

|^ A single client may be connected to the WATCH facility at any given time.
When connecting the client is sent an HTTP response header and the WATCH report
heading lines.  The request then remains connected until the WATCH duration
expires or the client overtly aborts the connection.  During this period the
browser behaves as if receiving a sometimes very slow, sometimes stalled,
plain-text document.  As the server processes WATCHable events the text
generated is sent to the WATCH-connected client.

|^ If the connection is aborted by the user some browsers will consider
document retrieval to be incomplete and attempt to reconnect to the service if
an attempt is made to print or save the resulting document. As the printing of
WATCH information is often quite valuable during problem resolution this
behaviour can result in loss of information and generally be quite annoying.
Appropriate use of the duration selector when requesting a report can work
around this, as at expiry the |/server| disconnects, browsers generally
interpreting this as legitimate end-of-document (when no content-length has
been specified).

|^ During report processing some browsers may not immediately update the
on-screen information to reflect received data without some application
activity. If scroll-bars are present on the document window manipulating
either the horizonal or vertical slider will often accomplish this. Failing
that minimizing then restoring the application will usually result in the most
recent information being visible.

|^ Browser |/reload/refresh| may be used to restart the report. A browser will
quite commonly attempt to remain at the current position in the document, which
with a WATCH report's sustained but largely indeterminate data stream may take
some time to reach. It is suggested the user ensure that any vertical
scroll-bar is at the beginning of the current report, then refresh the report.

|^ Selecting a large number of categories, those that generate copious output
for a single event (e.g. response body) or collecting for extended periods
can all result in the receipt of massive reports. Some browsers do not cope
well with documents megabytes in size.

|note|
WATCH reports are written using non-blocking I/O into an internal buffer.  This
buffer is written when filled, or flushed at a one second interval.  Slight
latency may be experienced with sporadic WATCH report items.
|!note|

|^ |*When supplying WATCH output as part of a problem report||
please ZIP the file and include it an an e-mail attachment.  Mailers often
mangle the report format making it difficult to interpret.

|2Command-Line Use|

|^ Although intended primarily as a tool for online use WATCH can be deployed
at server startup with a command-line qualifier and provide report output to
the server process log. This is slightly more cumbersome than the Web interface
but may still be useful in some circumstances. Full control over event
categories and filters is possible.

|bullet|

|item| |*./NOWATCH| Disables the use of the online WATCH facility.

|item| |*./WATCH=| Enables the server WATCH facility, dumping to
standard output (and the server process log if detached).  When in effect the
online facility is unavailable.  The string supplied to the qualifier may
comprise four comma-separated components.  Only the first is manadatory.
Stated order is essential.  It will probably be necessary to enclose the
complete string in quotation marks.

|bullet|

|item| |*LIST |-| |
The LIST keyword provides a list of all the categories (items) available for
WATCHing.

|item| |*NOSTARTUP |-| |
This keyword suppresses WATCH output until the server is ready to process
requests.  It must be the leading keyword.

|item| |* |/items| |-| |
A parenthesized, comma-separated list of category keywords.  Available keywords
can be displayed using the LIST facility.

|item| |* |/filters| |-| |
A client, service and path filters can be provided following the specification
of required items.  They must be provided in the order listed above.  Leading
filters that are not required must be provided as single, asterisk wildcards. 
WATCH parameter with filters containing forward-slashes will require quoting.

|!bullet|

|!bullet|

|^ The following examples illustrate the command-line WATCH specification.

|code|
/NOWATCH
/WATCH=NOSTARTUP,ITEMS=(REQUEST,RESPONSE,MAPPING)
/WATCH="ITEMS=(REQUEST,RESPONSE,ERROR),*,*,/cgi-bin/*"
/WATCH=LIST
|!code|