VCL Log Tree

VCL Log Tree offers a new way to visualize varnishlog transactions. In the standard varnishlog text output, VSL tags are grouped by individual transactions. Here, however, whenever a VSL tag of type Link is found, it indicates a child transaction, and a new tree box is created to display the tags of this child transaction, continuing recursively as needed.

Some VSL tags are also enhanced for readability: for example, Timestamp tags display elapsed time in a human-readable format, and unset headers are shown with strikethrough text.

{{ $set := .Transactions.Set }} {{ $state := "open" }} {{ range .Transactions.Set.UniqueRootParents true }}
Tree for {{ .TXID }}
{{ renderTXLogTree $set . }}


{{ $state = "" }} {{ end }} {{ if .Transactions.Set.NonTransactional }}
Non-transactional records (VXID 0)
{{ nonTransactionalLogTree .Transactions.Set }}


{{ end }}