| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
- .\"
- .\" Standard preamble:
- .\" ========================================================================
- .de Sp \" Vertical space (when we can't use .PP)
- .if t .sp .5v
- .if n .sp
- ..
- .de Vb \" Begin verbatim text
- .ft CW
- .nf
- .ne \\$1
- ..
- .de Ve \" End verbatim text
- .ft R
- .fi
- ..
- .\" Set up some character translations and predefined strings. \*(-- will
- .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
- .\" double quote, and \*(R" will give a right double quote. \*(C+ will
- .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
- .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
- .\" nothing in troff, for use with C<>.
- .tr \(*W-
- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
- .ie n \{\
- . ds -- \(*W-
- . ds PI pi
- . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
- . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
- . ds L" ""
- . ds R" ""
- . ds C` ""
- . ds C' ""
- 'br\}
- .el\{\
- . ds -- \|\(em\|
- . ds PI \(*p
- . ds L" ``
- . ds R" ''
- . ds C`
- . ds C'
- 'br\}
- .\"
- .\" Escape single quotes in literal strings from groff's Unicode transform.
- .ie \n(.g .ds Aq \(aq
- .el .ds Aq '
- .\"
- .\" If the F register is >0, we'll generate index entries on stderr for
- .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
- .\" entries marked with X<> in POD. Of course, you'll have to process the
- .\" output yourself in some meaningful fashion.
- .\"
- .\" Avoid warning from groff about undefined register 'F'.
- .de IX
- ..
- .nr rF 0
- .if \n(.g .if rF .nr rF 1
- .if (\n(rF:(\n(.g==0)) \{\
- . if \nF \{\
- . de IX
- . tm Index:\\$1\t\\n%\t"\\$2"
- ..
- . if !\nF==2 \{\
- . nr % 0
- . nr F 2
- . \}
- . \}
- .\}
- .rr rF
- .\"
- .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
- .\" Fear. Run. Save yourself. No user-serviceable parts.
- . \" fudge factors for nroff and troff
- .if n \{\
- . ds #H 0
- . ds #V .8m
- . ds #F .3m
- . ds #[ \f1
- . ds #] \fP
- .\}
- .if t \{\
- . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
- . ds #V .6m
- . ds #F 0
- . ds #[ \&
- . ds #] \&
- .\}
- . \" simple accents for nroff and troff
- .if n \{\
- . ds ' \&
- . ds ` \&
- . ds ^ \&
- . ds , \&
- . ds ~ ~
- . ds /
- .\}
- .if t \{\
- . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
- . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
- . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
- . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
- . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
- . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
- .\}
- . \" troff and (daisy-wheel) nroff accents
- .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
- .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
- .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
- .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
- .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
- .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
- .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
- .ds ae a\h'-(\w'a'u*4/10)'e
- .ds Ae A\h'-(\w'A'u*4/10)'E
- . \" corrections for vroff
- .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
- .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
- . \" for low resolution devices (crt and lpr)
- .if \n(.H>23 .if \n(.V>19 \
- \{\
- . ds : e
- . ds 8 ss
- . ds o a
- . ds d- d\h'-1'\(ga
- . ds D- D\h'-1'\(hy
- . ds th \o'bp'
- . ds Th \o'LP'
- . ds ae ae
- . ds Ae AE
- .\}
- .rm #[ #] #H #V #F C
- .\" ========================================================================
- .\"
- .IX Title "OPENSSL-QLOG 7ossl"
- .TH OPENSSL-QLOG 7ossl "2024-09-03" "3.3.2" "OpenSSL"
- .\" For nroff, turn off justification. Always turn off hyphenation; it makes
- .\" way too many mistakes in technical documents.
- .if n .ad l
- .nh
- .SH "NAME"
- openssl\-qlog \- OpenSSL qlog tracing functionality
- .SH "DESCRIPTION"
- .IX Header "DESCRIPTION"
- OpenSSL has unstable support for generating logs in the qlog logging format,
- which can be used to obtain diagnostic data for \s-1QUIC\s0 connections. The data
- generated includes information on packets sent and received and the frames
- contained within them, as well as loss detection and other events.
- .PP
- The qlog output generated by OpenSSL can be used to obtain diagnostic
- visualisations of a given \s-1QUIC\s0 connection using tools such as \fBqvis\fR.
- .PP
- \&\fB\s-1WARNING:\s0\fR The output of OpenSSL's qlog functionality uses an unstable format
- based on a draft specification. qlog output is not subject to any format
- stability or compatibility guarantees at this time, and \fBwill\fR change in
- incompatible ways in future versions of OpenSSL. See \fB\s-1FORMAT STABILITY\s0\fR below
- for details.
- .SH "USAGE"
- .IX Header "USAGE"
- When OpenSSL is built with qlog support, qlog is enabled at run time by setting
- the standard \fB\s-1QLOGDIR\s0\fR environment variable to point to a directory where qlog
- files should be written. Once set, any \s-1QUIC\s0 connection established by OpenSSL
- will have a qlog file written automatically to the specified directory.
- .PP
- Log files are generated in the \fI.sqlog\fR format based on JSON-SEQ (\s-1RFC 7464\s0).
- .PP
- The filenames of generated log files under the specified \fB\s-1QLOGDIR\s0\fR use the
- following structure:
- .PP
- .Vb 1
- \& {connection_odcid}_{vantage_point_type}.sqlog
- .Ve
- .PP
- where \fB{connection_odcid}\fR is the lowercase hexadecimal encoding of a \s-1QUIC\s0
- connection's Original Destination Connection \s-1ID,\s0 which is the Destination
- Connection \s-1ID\s0 used in the header of the first Initial packet sent as part of the
- connection process, and \fB{vantage_point_type}\fR is either \f(CW\*(C`client\*(C'\fR or
- \&\f(CW\*(C`server\*(C'\fR, reflecting the perspective of the endpoint producing the qlog output.
- .PP
- The qlog functionality can be disabled at OpenSSL build time using the
- \&\fIno-unstable-qlog\fR configure flag.
- .SH "SUPPORTED EVENT TYPES"
- .IX Header "SUPPORTED EVENT TYPES"
- The following event types are currently supported:
- .IP "\fBconnectivity:connection_started\fR" 4
- .IX Item "connectivity:connection_started"
- .PD 0
- .IP "\fBconnectivity:connection_state_updated\fR" 4
- .IX Item "connectivity:connection_state_updated"
- .IP "\fBconnectivity:connection_closed\fR" 4
- .IX Item "connectivity:connection_closed"
- .IP "\fBtransport:parameters_set\fR" 4
- .IX Item "transport:parameters_set"
- .IP "\fBtransport:packet_sent\fR" 4
- .IX Item "transport:packet_sent"
- .IP "\fBtransport:packet_received\fR" 4
- .IX Item "transport:packet_received"
- .IP "\fBrecovery:packet_lost\fR" 4
- .IX Item "recovery:packet_lost"
- .PD
- .SH "FILTERS"
- .IX Header "FILTERS"
- By default, all supported event types are logged. The \fB\s-1OSSL_QFILTER\s0\fR
- environment variable can be used to configure a filter specification which
- determines which event types are to be logged. Each event type can be turned on
- and off individually. The filter specification is a space-separated list of
- terms listing event types to enable or disable. The terms are applied in order,
- thus the effects of later terms override the effects of earlier terms.
- .SS "Examples"
- .IX Subsection "Examples"
- Here are some example filter specifications:
- .ie n .IP """*"" (or ""+*"")" 4
- .el .IP "\f(CW*\fR (or \f(CW+*\fR)" 4
- .IX Item "* (or +*)"
- Enable all supported qlog event types.
- .ie n .IP """\-*""" 4
- .el .IP "\f(CW\-*\fR" 4
- .IX Item "-*"
- Disable all qlog event types.
- .ie n .IP """* \-transport:packet_received""" 4
- .el .IP "\f(CW* \-transport:packet_received\fR" 4
- .IX Item "* -transport:packet_received"
- Enable all qlog event types, but disable the \fBtransport:packet_received\fR event
- type.
- .ie n .IP """\-* transport:packet_sent""" 4
- .el .IP "\f(CW\-* transport:packet_sent\fR" 4
- .IX Item "-* transport:packet_sent"
- Disable all qlog event types, except for the \fBtransport:packet_sent\fR event type.
- .ie n .IP """\-* connectivity:* transport:parameters_set""" 4
- .el .IP "\f(CW\-* connectivity:* transport:parameters_set\fR" 4
- .IX Item "-* connectivity:* transport:parameters_set"
- Disable all qlog event types, except for \fBtransport:parameters_set\fR and all
- supported event types in the \fBconnectivity\fR category.
- .SS "Filter Syntax Specification"
- .IX Subsection "Filter Syntax Specification"
- Formally, the format of the filter specification in \s-1ABNF\s0 is as follows:
- .PP
- .Vb 1
- \& filter = *filter\-term
- \&
- \& filter\-term = add\-sub\-term
- \&
- \& add\-sub\-term = ["\-" / "+"] specifier
- \&
- \& specifier = global\-specifier / qualified\-specifier
- \&
- \& global\-specifier = wildcard
- \&
- \& qualified\-specifier = component\-specifier ":" component\-specifier
- \&
- \& component\-specifier = name / wildcard
- \&
- \& wildcard = "*"
- \&
- \& name = 1*(ALPHA / DIGIT / "_" / "\-")
- .Ve
- .PP
- Filter terms are interpreted as follows:
- .ie n .IP """+*"" (or ""*"")" 4
- .el .IP "\f(CW+*\fR (or \f(CW*\fR)" 4
- .IX Item "+* (or *)"
- Enables all event types.
- .ie n .IP """\-*""" 4
- .el .IP "\f(CW\-*\fR" 4
- .IX Item "-*"
- Disables all event types.
- .ie n .IP """+foo:*"" (or ""foo:*"")" 4
- .el .IP "\f(CW+foo:*\fR (or \f(CWfoo:*\fR)" 4
- .IX Item "+foo:* (or foo:*)"
- Enables all event types in the \fBfoo\fR category.
- .ie n .IP """\-foo:*""" 4
- .el .IP "\f(CW\-foo:*\fR" 4
- .IX Item "-foo:*"
- Disables all event types in the \fBfoo\fR category.
- .ie n .IP """+foo:bar"" (or ""foo:bar"")" 4
- .el .IP "\f(CW+foo:bar\fR (or \f(CWfoo:bar\fR)" 4
- .IX Item "+foo:bar (or foo:bar)"
- Enables a specific event type \fBfoo:bar\fR.
- .ie n .IP """\-foo:bar""" 4
- .el .IP "\f(CW\-foo:bar\fR" 4
- .IX Item "-foo:bar"
- Disables a specific event type \fBfoo:bar\fR.
- .PP
- Partial wildcard matches are not supported at this time.
- .SS "Default Configuration"
- .IX Subsection "Default Configuration"
- If the \fB\s-1OSSL_QFILTER\s0\fR environment variable is not set or set to the empty
- string, this is equivalent to enabling all event types (i.e., it is equivalent
- to a filter of \f(CW\*(C`*\*(C'\fR). Note that the \fB\s-1QLOGDIR\s0\fR environment variable must also be
- set to enable qlog.
- .SH "FORMAT STABILITY"
- .IX Header "FORMAT STABILITY"
- The OpenSSL qlog functionality currently implements a draft version of the qlog
- specification. Future revisions to the qlog specification in advance of formal
- standardisation are expected to introduce incompatible and breaking changes to
- the qlog format. The OpenSSL qlog functionality will transition to producing
- output in this format in the future once standardisation is complete.
- .PP
- Because of this, the qlog output of OpenSSL \fBwill\fR change in incompatible and
- breaking ways in the future, including in non-major releases of OpenSSL. The
- qlog output of OpenSSL is considered unstable and not subject to any format
- stability or compatibility guarantees at this time.
- .PP
- Users of the OpenSSL qlog functionality must be aware that the output may change
- arbitrarily between releases and that the preservation of compatibility with any
- given tool between releases is not guaranteed.
- .SS "Aims"
- .IX Subsection "Aims"
- The OpenSSL draft qlog functionality is primarily intended for use in
- conjunction with the qvis tool <https://qvis.quictools.info/>. In terms of
- format compatibility, the output format of the OpenSSL qlog functionality is
- expected to track what is supported by qvis. As such, future changes to the
- output of the OpenSSL qlog functionality are expected to track changes in qvis
- as they occur, and reflect the versions of qlog currently supported by qvis.
- .PP
- This means that prior to the finalisation of the qlog standard, in the event of
- a disparity between the current draft and what qvis supports, the OpenSSL qlog
- functionality will generally aim for qvis compatibility over compliance with the
- latest draft.
- .PP
- As such, OpenSSL's qlog functionality currently implements qlog version 0.3 as
- defined in \fBdraft\-ietf\-quic\-qlog\-main\-schema\-05\fR and
- \&\fBdraft\-ietf\-quic\-qlog\-quic\-events\-04\fR. These revisions are intentionally used
- instead of more recent revisions due to their qvis compatibility.
- .SH "LIMITATIONS"
- .IX Header "LIMITATIONS"
- The OpenSSL implementation of qlog currently has the following limitations:
- .IP "\(bu" 4
- Not all event types defined by the draft specification are implemented.
- .IP "\(bu" 4
- Only the JSON-SEQ (\fB.sqlog\fR) output format is supported.
- .IP "\(bu" 4
- Only the \fB\s-1QLOGDIR\s0\fR environment variable is supported for configuring the qlog
- output directory. The standard \fB\s-1QLOGFILE\s0\fR environment variable is not
- supported.
- .IP "\(bu" 4
- There is no \s-1API\s0 for programmatically enabling or controlling the qlog
- functionality.
- .SH "SEE ALSO"
- .IX Header "SEE ALSO"
- \&\fBopenssl\-quic\fR\|(7), \fBopenssl\-env\fR\|(7)
- .SH "HISTORY"
- .IX Header "HISTORY"
- This functionality was added in OpenSSL 3.3.
- .SH "COPYRIGHT"
- .IX Header "COPYRIGHT"
- Copyright 2024 The OpenSSL Project Authors. All Rights Reserved.
- .PP
- Licensed under the Apache License 2.0 (the \*(L"License\*(R"). You may not use
- this file except in compliance with the License. You can obtain a copy
- in the file \s-1LICENSE\s0 in the source distribution or at
- <https://www.openssl.org/source/license.html>.
|