Closed chad-earthscope closed 7 years ago
Clarification: there should not be duplicate NET_STA_LOC_CHAN entries. The byte count for each NET_STA_LOC_CHAN should be a total for each NET_STA_LOC_CHAN.
Current formatting is wrong in the following ways:
Header lines have malformed host name and request time:
START CLIENT ('localhost', ['1.0.0.127.in-addr.arpa'], ['127.0.0.1']) [127.0.0.1] @ 06/May/2017 07:55:53 [curl/7.53.1]
Footer lines have similarly malformed host name:
END CLIENT ('localhost', ['1.0.0.127.in-addr.arpa'], ['127.0.0.1']) [127.0.0.1] total_bytes: 1077760
Shipment information for the same NET_STA_LOC_CHAN is not combined, apparently being output per-section as identified by the index.
Shipment logging should be written to day-files in a user-specified directory. The shipment files should be named using the following pattern:
e.g.
shipment-2017-04-25Z
Each connection should write a block in the following pattern:
If the ClientHostName (a reverse lookup of the connected client address) is not available the ClientIP should be used. Obviously, these blocks should be written "atomically", i.e. not multiplexed with other blocks.
An example log snippet with two entries: