mirror of
https://github.com/coredns/coredns.git
synced 2025-11-08 04:56:21 -05:00
middleware/log: make {size} the length of the request (#449)
* middleware/log: make {size} the length of the request
{size} is the lenght of the request, {rsize} is the length of the
reply.
* Fix test
This commit is contained in:
@@ -62,19 +62,20 @@ The following place holders are supported:
|
||||
* `{proto}`: protocol used (tcp or udp).
|
||||
* `{when}`: time of the query.
|
||||
* `{remote}`: client's IP address.
|
||||
* `{size}`: request size in bytes.
|
||||
* `{port}`: client's port.
|
||||
* `{rcode}`: response RCODE.
|
||||
* `{size}`: response size.
|
||||
* `{duration}`: response duration.
|
||||
* `{>bufsize}`: the EDNS0 buffer size advertized by the client.
|
||||
* `{>bufsize}`: the EDNS0 buffer size advertised.
|
||||
* `{>do}`: is the EDNS0 DO (DNSSEC OK) bit set.
|
||||
* `{>id}`: query ID
|
||||
* `{>opcode}`: query OPCODE
|
||||
* `{>opcode}`: query OPCODE.
|
||||
* `{rcode}`: response RCODE.
|
||||
* `{rsize}`: response size.
|
||||
|
||||
The default Common Log Format is:
|
||||
|
||||
~~~ txt
|
||||
`{remote} - [{when}] "{type} {class} {name} {proto} {>do} {>bufsize}" {rcode} {size} {duration}`
|
||||
`{remote} - [{when}] "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {rsize} {duration}`
|
||||
~~~
|
||||
|
||||
## Examples
|
||||
|
||||
Reference in New Issue
Block a user