File: vsl.7

package info (click to toggle)
varnish 6.5.1-1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,720 kB
  • sloc: ansic: 95,295; javascript: 9,411; sh: 4,673; python: 2,157; makefile: 1,353; awk: 114; ruby: 34
file content (1163 lines) | stat: -rw-r--r-- 26,833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
.\" Man page generated from reStructuredText.
.
.TH VSL 7 "" "" ""
.SH NAME
VSL \- Varnish Shared Memory Logging
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.SH OVERVIEW
.sp
This document describes the format and content of all the Varnish shared memory
logging tags. These tags are used by the varnishlog(1), varnishtop(1), etc.
logging tools supplied with Varnish.
.SS VSL tags
.INDENT 0.0
.TP
.B Backend \- Backend selected
Logged when a connection is selected for handling a backend request.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %s %s
|  |  |
|  |  +\- Backend display name
|  +\-\-\-\- VCL name
+\-\-\-\-\-\-\- Connection file descriptor
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: This tag is currently not in use in the Varnish log.
It is mentioned here to document legacy versions of the log,
or reserved for possible use in future versions.
.TP
.B BackendClose \- Backend connection closed
Logged when a backend connection is closed.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %s %s [ %s ]
|  |  |    |
|  |  |    +\- Optional reason
|  |  +\-\-\-\-\-\- "close" or "recycle"
|  +\-\-\-\-\-\-\-\-\- Backend display name
+\-\-\-\-\-\-\-\-\-\-\-\- Connection file descriptor
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B BackendOpen \- Backend connection opened
Logged when a new backend connection is opened.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %s %s %s %s %s %s
|  |  |  |  |  |  |
|  |  |  |  |  |  +\- "connect" or "reuse"
|  |  |  |  |  +\-\-\-\- Local port
|  |  |  |  +\-\-\-\-\-\-\- Local address
|  |  |  +\-\-\-\-\-\-\-\-\-\- Remote port
|  |  +\-\-\-\-\-\-\-\-\-\-\-\-\- Remote address
|  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Backend display name
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Connection file descriptor
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B BackendReuse \- Backend connection put up for reuse
Logged when a backend connection is put up for reuse by a later connection.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %s
|  |
|  +\- Backend display name
+\-\-\-\- Connection file descriptor
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: This tag is currently not in use in the Varnish log.
It is mentioned here to document legacy versions of the log,
or reserved for possible use in future versions.
.TP
.B BackendStart \- Backend request start
Start of backend processing. Logs the backend IP address and port number.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %s
|  |
|  +\- Backend Port number
+\-\-\-\- Backend IP4/6 address
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: This tag is currently not in use in the Varnish log.
It is mentioned here to document legacy versions of the log,
or reserved for possible use in future versions.
.TP
.B Backend_health \- Backend health check
The result of a backend health probe.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %s %s %s %u %u %u %f %f %s
|  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  +\- Probe HTTP response / error information
|  |  |  |  |  |  |  |  +\-\-\-\- Average response time
|  |  |  |  |  |  |  +\-\-\-\-\-\-\- Response time
|  |  |  |  |  |  +\-\-\-\-\-\-\-\-\-\- Probe window size
|  |  |  |  |  +\-\-\-\-\-\-\-\-\-\-\-\-\- Probe threshold level
|  |  |  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Number of good probes in window
|  |  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Probe window bits
|  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- "healthy" or "sick"
|  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- "Back", "Still" or "Went"
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Backend name
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Probe window bits are:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
\(aq4\(aq: Good IPv4
\(aq6\(aq: Good IPv6
\(aqU\(aq: Good UNIX
\(aqx\(aq: Error Xmit
\(aqX\(aq: Good Xmit
\(aqr\(aq: Error Recv
\(aqR\(aq: Good Recv
\(aqH\(aq: Happy
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B Begin \- Marks the start of a VXID
The first record of a VXID transaction.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %d %s
|  |  |
|  |  +\- Reason
|  +\-\-\-\- Parent vxid
+\-\-\-\-\-\-\- Type ("sess", "req" or "bereq")
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B BereqAcct \- Backend request accounting
Contains byte counters from backend request processing.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %d %d %d %d %d
|  |  |  |  |  |
|  |  |  |  |  +\- Total bytes received
|  |  |  |  +\-\-\-\- Body bytes received
|  |  |  +\-\-\-\-\-\-\- Header bytes received
|  |  +\-\-\-\-\-\-\-\-\-\- Total bytes transmitted
|  +\-\-\-\-\-\-\-\-\-\-\-\-\- Body bytes transmitted
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Header bytes transmitted
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B BereqHeader \- Backend request header
HTTP header contents.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %s
|   |
|   +\- Header value
+\-\-\-\-\- Header name
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: HTTP header fields are free form records and not strictly
made of 2 fields. Accessing a specific header with the prefix
notation helps treating the header value as a single string.
.TP
.B BereqMethod \- Backend request method
The HTTP request method used.
.TP
.B BereqProtocol \- Backend request protocol
The HTTP protocol version information.
.TP
.B BereqURL \- Backend request URL
The HTTP request URL.
.TP
.B BerespHeader \- Backend response header
HTTP header contents.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %s
|   |
|   +\- Header value
+\-\-\-\-\- Header name
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: HTTP header fields are free form records and not strictly
made of 2 fields. Accessing a specific header with the prefix
notation helps treating the header value as a single string.
.TP
.B BerespProtocol \- Backend response protocol
The HTTP protocol version information.
.TP
.B BerespReason \- Backend response reason
The HTTP response reason string.
.TP
.B BerespStatus \- Backend response status
The HTTP response status code.
.TP
.B BogoHeader \- Bogus HTTP received
Contains the first 20 characters of received HTTP headers we could not make sense of.  Applies to both req.http and beresp.http.
.TP
.B CLI \- CLI communication
CLI communication between varnishd master and child process.
.TP
.B Debug \- Debug messages
Debug messages can normally be ignored, but are sometimes helpful during trouble\-shooting.  Most debug messages must be explicitly enabled with parameters.
.sp
Debug messages may be added, changed or removed without prior notice and shouldn\(aqt be considered stable.
.sp
NB: This log record is masked by default.
.TP
.B ESI_xmlerror \- ESI parser error or warning message
An error or warning was generated during parsing of an ESI object. The log record describes the problem encountered.
.TP
.B End \- Marks the end of a VXID
The last record of a VXID transaction.
.TP
.B Error \- Error messages
Error messages are stuff you probably want to know.
.TP
.B ExpBan \- Object evicted due to ban
Logs the VXID when an object is banned.
.TP
.B ExpKill \- Object expiry event
Logs events related to object expiry. The events are:
.INDENT 7.0
.TP
.B EXP_Rearm
Logged when the expiry time of an object changes.
.TP
.B EXP_Inbox
Logged when the expiry thread picks an object from the inbox for processing.
.TP
.B EXP_Kill
Logged when the expiry thread kills an object from the inbox.
.TP
.B EXP_When
Logged when the expiry thread moves an object on the binheap.
.TP
.B EXP_Expired
Logged when the expiry thread expires an object.
.TP
.B LRU_Cand
Logged when an object is evaluated for LRU force expiry.
.TP
.B LRU
Logged when an object is force expired due to LRU.
.TP
.B LRU_Fail
Logged when no suitable candidate object is found for LRU force expiry.
.UNINDENT
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
EXP_Rearm p=%p E=%f e=%f f=0x%x
EXP_Inbox p=%p e=%f f=0x%x
EXP_Kill p=%p e=%f f=0x%x
EXP_When p=%p e=%f f=0x%x
EXP_Expired x=%u t=%f
LRU_Cand p=%p f=0x%x r=%d
LRU x=%u
LRU_Fail

Legend:
p=%p         Objcore pointer
t=%f         Remaining TTL (s)
e=%f         Expiry time (unix epoch)
E=%f         Old expiry time (unix epoch)
f=0x%x       Objcore flags
r=%d         Objcore refcount
x=%u         Object VXID
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B FetchError \- Error while fetching object
Logs the error message of a failed fetch operation.
.sp
Error messages should be self\-explanatory, yet the http connection
(HTC) class of errors is reported with these symbols:
.INDENT 7.0
.INDENT 3.5
.INDENT 0.0
.IP \(bu 2
junk (\-5): Received unexpected data
.IP \(bu 2
close (\-4): Connection closed
.IP \(bu 2
timeout (\-3): Timed out
.IP \(bu 2
overflow (\-2): Buffer/workspace too small
.IP \(bu 2
eof (\-1): Unexpected end of input
.IP \(bu 2
empty (0): Empty response
.IP \(bu 2
more (1): More data required
.IP \(bu 2
complete (2): Data complete (no error)
.IP \(bu 2
idle (3): Connection was closed while idle
.UNINDENT
.UNINDENT
.UNINDENT
.sp
Notice that some HTC errors are never emitted.
.TP
.B Fetch_Body \- Body fetched from backend
Ready to fetch body from backend.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %s %s
|  |  |
|  |  +\-\-\-\- \(aqstream\(aq or \(aq\-\(aq
|  +\-\-\-\-\-\-\- Text description of body fetch mode
+\-\-\-\-\-\-\-\-\-\- Body fetch mode
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B Filters \- Body filters
List of filters applied to the body
.TP
.B Gzip \- G(un)zip performed on object
A Gzip record is emitted for each instance of gzip or gunzip work performed. Worst case, an ESI transaction stored in gzip\(aqed objects but delivered gunziped, will run into many of these.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%c %c %c %d %d %d %d %d
|  |  |  |  |  |  |  |
|  |  |  |  |  |  |  +\- Bit length of compressed data
|  |  |  |  |  |  +\-\-\-\- Bit location of \(aqlast\(aq bit
|  |  |  |  |  +\-\-\-\-\-\-\- Bit location of first deflate block
|  |  |  |  +\-\-\-\-\-\-\-\-\-\- Bytes output
|  |  |  +\-\-\-\-\-\-\-\-\-\-\-\-\- Bytes input
|  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \(aqE\(aq: ESI, \(aq\-\(aq: Plain object
|  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \(aqF\(aq: Fetch, \(aqD\(aq: Deliver
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \(aqG\(aq: Gzip, \(aqU\(aq: Gunzip, \(aqu\(aq: Gunzip\-test
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Examples:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
U F E 182 159 80 80 1392
G F E 159 173 80 1304 1314
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B H2RxBody \- Received HTTP2 frame body
Binary data
.TP
.B H2RxHdr \- Received HTTP2 frame header
Binary data
.TP
.B H2TxBody \- Transmitted HTTP2 frame body
Binary data
.TP
.B H2TxHdr \- Transmitted HTTP2 frame header
Binary data
.TP
.B Hash \- Value added to hash
This value was added to the object lookup hash.
.sp
NB: This log record is masked by default.
.TP
.B Hit \- Hit object in cache
Object looked up in cache.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%u %f %f %f
|  |  |  |
|  |  |  +\- Keep period
|  |  +\-\-\-\- Grace period
|  +\-\-\-\-\-\-\- Remaining TTL
+\-\-\-\-\-\-\-\-\-\- VXID of the object
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B HitMiss \- Hit for miss object in cache.
Hit\-for\-miss object looked up in cache.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%u %f
|  |
|  +\- Remaining TTL
+\-\-\-\- VXID of the object
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B HitPass \- Hit for pass object in cache.
Hit\-for\-pass object looked up in cache.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%u %f
|  |
|  +\- Remaining TTL
+\-\-\-\- VXID of the object
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B HttpGarbage \- Unparseable HTTP request
Logs the content of unparseable HTTP requests.
.TP
.B Length \- Size of object body
Logs the size of a fetch object body.
.TP
.B Link \- Links to a child VXID
Links this VXID to any child VXID it initiates.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %d %s
|  |  |
|  |  +\- Reason
|  +\-\-\-\- Child vxid
+\-\-\-\-\-\-\- Child type ("req" or "bereq")
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B LostHeader \- Failed attempt to set HTTP header
Logs the header name of a failed HTTP header operation due to resource exhaustion or configured limits.
.TP
.B Notice \- Informational messages about request handling
Informational log messages on events occured during request handling.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %s
|   |
|   +\- Short description of the notice message
+\-\-\-\-\- Manual page containing the detailed description
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
See the NOTICE MESSAGES section below or the individual VMOD manual pages for detailed information of notice messages.
.TP
.B ObjHeader \- Object header
HTTP header contents.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %s
|   |
|   +\- Header value
+\-\-\-\-\- Header name
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: HTTP header fields are free form records and not strictly
made of 2 fields. Accessing a specific header with the prefix
notation helps treating the header value as a single string.
.TP
.B ObjProtocol \- Object protocol
The HTTP protocol version information.
.TP
.B ObjReason \- Object reason
The HTTP response reason string.
.TP
.B ObjStatus \- Object status
The HTTP response status code.
.TP
.B PipeAcct \- Pipe byte counts
Contains byte counters for pipe sessions.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %d %d %d
|  |  |  |
|  |  |  +\-\-\-\-\-\-\- Piped bytes to client
|  |  +\-\-\-\-\-\-\-\-\-\- Piped bytes from client
|  +\-\-\-\-\-\-\-\-\-\-\-\-\- Backend request headers
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Client request headers
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B Proxy \- PROXY protocol information
PROXY protocol information.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %s %d %s %d
|  |  |  |  |
|  |  |  |  +\- server port
|  |  |  +\-\-\-\- server ip
|  |  +\-\-\-\-\-\-\- client port
|  +\-\-\-\-\-\-\-\-\-\- client ip
+\-\-\-\-\-\-\-\-\-\-\-\-\- PROXY protocol version

All fields are "local" for PROXY local connections (command 0x0)
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B ProxyGarbage \- Unparseable PROXY request
A PROXY protocol header was unparseable.
.TP
.B ReqAcct \- Request handling byte counts
Contains byte counts for the request handling.
The body bytes count includes transmission overhead (ie: chunked encoding).
ESI sub\-requests show the body bytes this ESI fragment including any subfragments contributed to the top level request.
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%d %d %d %d %d %d
|  |  |  |  |  |
|  |  |  |  |  +\- Total bytes transmitted
|  |  |  |  +\-\-\-\- Body bytes transmitted
|  |  |  +\-\-\-\-\-\-\- Header bytes transmitted
|  |  +\-\-\-\-\-\-\-\-\-\- Total bytes received
|  +\-\-\-\-\-\-\-\-\-\-\-\-\- Body bytes received
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Header bytes received
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B ReqHeader \- Client request header
HTTP header contents.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %s
|   |
|   +\- Header value
+\-\-\-\-\- Header name
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: HTTP header fields are free form records and not strictly
made of 2 fields. Accessing a specific header with the prefix
notation helps treating the header value as a single string.
.TP
.B ReqMethod \- Client request method
The HTTP request method used.
.TP
.B ReqProtocol \- Client request protocol
The HTTP protocol version information.
.TP
.B ReqStart \- Client request start
Start of request processing. Logs the client address, port number  and listener endpoint name (from the \-a command\-line argument).
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %s %s
|  |  |
|  |  +\-\- Listener name (from \-a)
|  +\-\-\-\-\- Client Port number (0 for Unix domain sockets)
+\-\-\-\-\-\-\-\- Client IP4/6 address (0.0.0.0 for UDS)
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B ReqURL \- Client request URL
The HTTP request URL.
.TP
.B RespHeader \- Client response header
HTTP header contents.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %s
|   |
|   +\- Header value
+\-\-\-\-\- Header name
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NOTE: HTTP header fields are free form records and not strictly
made of 2 fields. Accessing a specific header with the prefix
notation helps treating the header value as a single string.
.TP
.B RespProtocol \- Client response protocol
The HTTP protocol version information.
.TP
.B RespReason \- Client response reason
The HTTP response reason string.
.TP
.B RespStatus \- Client response status
The HTTP response status code.
.TP
.B SessClose \- Client connection closed
SessClose is the last record for any client connection.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %f
|  |
|  +\- How long the session was open
+\-\-\-\- Why the connection closed
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B SessError \- Client connection accept failed
Accepting a client connection has failed.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %s %s %d %d %s
|  |  |  |  |  |
|  |  |  |  |  +\- Detailed error message
|  |  |  |  +\-\-\-\- Error Number (errno) from accept(2)
|  |  |  +\-\-\-\-\-\-\- File descriptor number
|  |  +\-\-\-\-\-\-\-\-\-\- Local TCP port / 0 for UDS
|  +\-\-\-\-\-\-\-\-\-\-\-\-\- Local IPv4/6 address / 0.0.0.0 for UDS
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Socket name (from \-a argument)
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B SessOpen \- Client connection opened
The first record for a client connection, with the socket\-endpoints of the connection.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %d %s %s %s %d
|  |  |  |  |  |
|  |  |  |  |  +\- File descriptor number
|  |  |  |  +\-\-\-\- Local TCP port / 0 for UDS
|  |  |  +\-\-\-\-\-\-\- Local IPv4/6 address / 0.0.0.0 for UDS
|  |  +\-\-\-\-\-\-\-\-\-\- Socket name (from \-a argument)
|  +\-\-\-\-\-\-\-\-\-\-\-\-\- Remote TCP port / 0 for UDS
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Remote IPv4/6 address / 0.0.0.0 for UDS
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B Storage \- Where object is stored
Type and name of the storage backend the object is stored in.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %s
|  |
|  +\- Name of storage backend
+\-\-\-\- Type ("malloc", "file", "persistent" etc.)
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B TTL \- TTL set on object
A TTL record is emitted whenever the ttl, grace or keep values for an object is set as well as whether the object is  cacheable or not.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %d %d %d %d [ %d %d %u %u ] %s
|  |  |  |  |    |  |  |  |    |
|  |  |  |  |    |  |  |  |    +\- "cacheable" or "uncacheable"
|  |  |  |  |    |  |  |  +\-\-\-\-\-\- Max\-Age from Cache\-Control header
|  |  |  |  |    |  |  +\-\-\-\-\-\-\-\-\- Expires header
|  |  |  |  |    |  +\-\-\-\-\-\-\-\-\-\-\-\- Date header
|  |  |  |  |    +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Age (incl Age: header value)
|  |  |  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Reference time for TTL
|  |  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Keep
|  |  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Grace
|  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- TTL
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- "RFC", "VCL" or "HFP"
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The four optional fields are only present in "RFC" headers.
.sp
Examples:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
RFC 60 10 \-1 1312966109 1312966109 1312966109 0 60 cacheable
VCL 120 10 0 1312966111 uncacheable
HFP 2 0 0 1312966113 uncacheable
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B Timestamp \- Timing information
Contains timing information for the Varnish worker threads.
.sp
Time stamps are issued by Varnish on certain events, and show the absolute time of the event, the time spent since the start of the work unit, and the time spent since the last timestamp was logged. See the TIMESTAMPS section below for information about the individual time stamps.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s: %f %f %f
|   |  |  |
|   |  |  +\- Time since last timestamp
|   |  +\-\-\-\- Time since start of work unit
|   +\-\-\-\-\-\-\- Absolute time of event
+\-\-\-\-\-\-\-\-\-\-\- Event label
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B VCL_Error \- VCL execution error message
Logs error messages generated during VCL execution.
.TP
.B VCL_Log \- Log statement from VCL
User generated log messages insert from VCL through std.log()
.TP
.B VCL_acl \- VCL ACL check results
Logs VCL ACL evaluation results.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s [%s [%s [fixed: %s]]]
|   |   |          |
|   |   |          +\- Fixed entry (see vcc_acl_pedantic parameter)
|   |   +\-\-\-\-\-\-\-\-\-\-\-\- Matching entry (only for MATCH)
|   +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Name of the ACL for MATCH or NO_MATCH
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- MATCH, NO_MATCH or NO_FAM
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
MATCH denotes an ACL match
NO_MATCH denotes that a checked ACL has not matched
NO_FAM denotes a missing address family and should not occur.
.TP
.B VCL_call \- VCL method called
Logs the VCL method name when a VCL method is called.
.TP
.B VCL_return \- VCL method return value
Logs the VCL method terminating statement.
.TP
.B VCL_trace \- VCL trace data
Logs VCL execution trace data.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %u %u.%u.%u
|  |  |  |  |
|  |  |  |  +\- VCL program line position
|  |  |  +\-\-\-\- VCL program line number
|  |  +\-\-\-\-\-\-\- VCL program source index
|  +\-\-\-\-\-\-\-\-\-\- VCL trace point index
+\-\-\-\-\-\-\-\-\-\-\-\-\- VCL configname
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NB: This log record is masked by default.
.TP
.B VCL_use \- VCL in use
Records the name of the VCL being used.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s [ %s %s ]
|    |  |
|    |  +\- Name of label used to find it
|    +\-\-\-\- "via"
+\-\-\-\-\-\-\-\-\- Name of VCL put in use
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B VSL \- VSL API warnings and error message
Warnings and error messages generated by the VSL API while reading the shared memory log.
.TP
.B VfpAcct \- Fetch filter accounting
Contains name of VFP and statistics.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%s %d %d
|  |  |
|  |  +\- Total bytes produced
|  +\-\-\-\- Number of calls made
+\-\-\-\-\-\-\- Name of filter
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NB: This log record is masked by default.
.TP
.B Witness \- Lock order witness records
Diagnostic recording of locking order.
.TP
.B WorkThread \- Logs thread start/stop events
Logs worker thread creation and termination events.
.sp
The format is:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
%p %s
|  |
|  +\- [start|end]
+\-\-\-\- Worker struct pointer
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
NB: This log record is masked by default.
.UNINDENT
.SH TIMESTAMPS
.sp
Timestamps are inserted in the log on completing certain events during
the worker thread\(aqs task handling. The timestamps has a label showing
which event was completed. The reported fields show the absolute time
of the event, the time spent since the start of the task and the time
spent since the last timestamp was logged.
.sp
The timestamps logged automatically by Varnish are inserted after
completing events that are expected to have delays (e.g. network IO or
spending time on a waitinglist). Timestamps can also be inserted from
VCL using the std.timestamp() function. If one is doing time consuming
tasks in the VCL configuration, it\(aqs a good idea to log a timestamp
after completing that task. This keeps the timing information in
subsequent timestamps from including the time spent on the VCL event.
.SS Request handling timestamps
.INDENT 0.0
.TP
.B Start
The start of request processing (first byte received or
restart).
.TP
.B Req
Complete client request received.
.TP
.B ReqBody
Client request body processed (discarded, cached or passed to
the backend).
.TP
.B Waitinglist
Came off waitinglist.
.TP
.B Fetch
Fetch processing finished (completely fetched or ready for
streaming).
.TP
.B Process
Processing finished, ready to deliver the client response.
.TP
.B Resp
Delivery of response to the client finished.
.TP
.B Restart
Client request is being restarted.
.UNINDENT
.SS Pipe handling timestamps
.INDENT 0.0
.TP
.B Pipe
Opened a pipe to the backend and forwarded the request.
.TP
.B PipeSess
The pipe session has finished.
.UNINDENT
.SS Backend fetch timestamps
.INDENT 0.0
.TP
.B Start
Start of the backend fetch processing.
.TP
.B Bereq
Backend request sent.
.TP
.B Beresp
Backend response headers received.
.TP
.B BerespBody
Backend response body received.
.TP
.B Retry
Backend request is being retried.
.TP
.B Error
Backend request failed to vcl_backend_error.
.UNINDENT
.SH NOTICE MESSAGES
.sp
Notice messages contain informational messages about the handling of a
request. These can be exceptional circumstances encountered that causes
deviation from the normal handling. The messages are prefixed with \fBvsl\fP
for core Varnish generated messages, and VMOD authors are encouraged to
use \fBvmod_<name>\fP for their own notice messages. This matches the name
of the manual page where detailed descriptions of notice messages are
expected.
.sp
The core messages are described below.
.SS Conditional fetch wait for streaming object
.sp
The backend answered 304 Not Modified on a conditional fetch using an object
that has not yet been fully fetched as the stale template object. This can
only happen when the TTL of the object is less than the time it takes to fetch
it. The fetch is halted until the stale object is fully fetched, upon which
the new object is created as normal. While waiting, any grace time on the
stale object will be in effect.
.SH HISTORY
.sp
This document was initially written by Poul\-Henning Kamp, and later updated by
Martin Blix Grydeland.
.SH SEE ALSO
.INDENT 0.0
.IP \(bu 2
\fIvarnishhist(1)\fP
.IP \(bu 2
\fIvarnishlog(1)\fP
.IP \(bu 2
\fIvarnishncsa(1)\fP
.IP \(bu 2
\fIvarnishtop(1)\fP
.UNINDENT
.SH COPYRIGHT
.sp
This document is licensed under the same licence as Varnish
itself. See LICENCE for details.
.INDENT 0.0
.IP \(bu 2
Copyright (c) 2006 Verdens Gang AS
.IP \(bu 2
Copyright (c) 2006\-2015 Varnish Software AS
.UNINDENT
.\" Generated by docutils manpage writer.
.