Mailing List Archive

#1742: varnishlog -B produces a file varnishlog -r cannot read
#1742: varnishlog -B produces a file varnishlog -r cannot read
---------------------+------------------------
Reporter: Dridi | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishlog
Version: 4.0.3 | Severity: normal
Keywords: vsl vsm |
---------------------+------------------------
I may use it wrongly, but I use varnishlog -N as a workaround.

{{{
varnishtest "varnishlog -r cannot read a file produced by varnishlog -B"

varnish v1 -arg "-b ${bad_ip}:80" -start

shell "${varnishlog} -n ${tmpdir}/v1 -d -B >${tmpdir}/output.vsl"
shell "${varnishlog} -r ${tmpdir}/output.vsl"
}}}

The error message:
{{{
Can't open log (VSL file read error: EOF
)
}}}

As a side note:
How about a {{{ ${v1_n_arg} }}} macro in varnishtest?

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1742>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1742: varnishlog -B produces a file varnishlog -r cannot read [ In reply to ]
#1742: varnishlog -B produces a file varnishlog -r cannot read
------------------------+--------------------
Reporter: Dridi | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishlog | Version: 4.0.3
Severity: normal | Resolution:
Keywords: vsl vsm |
------------------------+--------------------

Comment (by Dridi):

OK, {{{-B}}} works with {{{-w}}}, but the man page doesn't make the
combination obvious:

{{{
[...]

-B Output binary data suitable for reading with -r.

[...]

-r filename
Read log in binary file format from this file.

[...]

-w filename
Redirect output to file. The file will be overwritten unless the
-a option was specified. If the application receives a SIGHUP
the file will be reopened allowing the old one to be rotated
away.


[...]
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1742#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1742: varnishlog -B produces a file varnishlog -r cannot read [ In reply to ]
#1742: varnishlog -B produces a file varnishlog -r cannot read
------------------------+--------------------
Reporter: Dridi | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishlog | Version: 4.0.3
Severity: normal | Resolution:
Keywords: vsl vsm |
------------------------+--------------------

Comment (by fgsch):

-B was dropped in master and it's the default behaviour for this very same
reason.

-A is used to generate a text file now.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1742#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1742: varnishlog -B produces a file varnishlog -r cannot read [ In reply to ]
#1742: varnishlog -B produces a file varnishlog -r cannot read
-------------------------+-------------------------------------------------
Reporter: Dridi | Owner: Dridi Boukelmoune
Type: defect | <dridi.boukelmoune@…>
Priority: normal | Status: closed
Component: varnishlog | Milestone:
Severity: normal | Version: 4.0.3
Keywords: vsl vsm | Resolution: fixed
-------------------------+-------------------------------------------------

Comment (by Dridi Boukelmoune <dridi.boukelmoune@…>):

In [299bc3d6d0f12994a5722ee5b40279a0bba94c76]:
{{{
#!CommitTicketReference repository=""
revision="299bc3d6d0f12994a5722ee5b40279a0bba94c76"
Document varnishlog -w/-r with more details

Fixes #1742
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1742#comment:4>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1742: varnishlog -B produces a file varnishlog -r cannot read [ In reply to ]
#1742: varnishlog -B produces a file varnishlog -r cannot read
-------------------------+-------------------------------------------------
Reporter: Dridi | Owner: Dridi Boukelmoune
Type: defect | <dridi.boukelmoune@…>
Priority: normal | Status: closed
Component: varnishlog | Milestone:
Severity: normal | Version: 4.0.3
Keywords: vsl vsm | Resolution: fixed
-------------------------+-------------------------------------------------
Changes (by Dridi Boukelmoune <dridi.boukelmoune@…>):

* status: new => closed
* owner: => Dridi Boukelmoune <dridi.boukelmoune@…>
* resolution: => fixed


Comment:

In [45553c62dbd025b1aa522129992a7c7e65b4df45]:
{{{
#!CommitTicketReference repository=""
revision="45553c62dbd025b1aa522129992a7c7e65b4df45"
Document varnishlog -w/-r with more details

Fixes #1742
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1742#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs