public interface WebServerAccessLog extends LogDescriptor
torproject.org
web server.
Parsing non-sanitized web server access logs from torproject.org
web servers or other web servers is not explicitly supported, but may work
anyway.
Modifier and Type | Interface and Description |
---|---|
static interface |
WebServerAccessLog.Line
Facilitates access to all log line fields that don't only contain
default values post sanitization.
|
Modifier and Type | Method and Description |
---|---|
java.time.LocalDate |
getLogDate()
Returns the date when requests contained in the log have been started,
which is parsed from the log file path.
|
java.lang.String |
getPhysicalHost()
Returns the hostname of the physical host writing this log file, which is
parsed from the log file path.
|
java.util.List<java.lang.String> |
getUnrecognizedLines()
Returns at most three unrecognized lines encountered while parsing the log.
|
java.lang.String |
getVirtualHost()
Returns the hostname of the virtual host that this log file was written
for, which is parsed from the log file path.
|
java.util.stream.Stream<WebServerAccessLog.Line> |
logLines()
Returns a stream of all valid log lines.
|
decompressedByteStream, getAnnotations, getRawDescriptorBytes
getDescriptorFile, getRawDescriptorLength
java.time.LocalDate getLogDate()
Typical web server access logs may contain date information in their file path, too, but that would be the date when the log file was rotated, which is not necessary the same date as the date in contained request lines.
java.lang.String getPhysicalHost()
A physical host can serve multiple virtual hosts, and a virtual host can be served by multiple physical hosts.
java.lang.String getVirtualHost()
A physical host can serve multiple virtual hosts, and a virtual host can be served by multiple physical hosts.
java.util.List<java.lang.String> getUnrecognizedLines()
getUnrecognizedLines
in interface Descriptor
getUnrecognizedLines
in interface LogDescriptor
java.util.stream.Stream<WebServerAccessLog.Line> logLines() throws DescriptorParseException
logLines
in interface LogDescriptor
DescriptorParseException