Yes, that worked. I am sorry for the confusion but, yes, it seems that my modified logrotate configuration broke the log:

> /var/log/varnish/varnish.log {
>     compress
>     compresscmd /bin/gzip
>     uncompresscmd /bin/gunzip
>     compressext gz
>     dateext
>     dateformat .%Y-%m-%d.
>     daily
>     rotate 7
>     ifempty
>     missingok
>     copytruncate
> }


Will fix that. Thanks for your time.




Dridi Boukelmoune wrote:
On Mon, Aug 28, 2017 at 3:05 PM, John Cherouvim <[email protected]> wrote:
00000000  12 00 00 4c 63 b6 4e 40  72 65 71 20 35 31 35 38  |...Lc.N@req
5158|

This is weird, you are missing 4 magic bytes at the beginning of the
file. It could be that the logrotate integration is fundamentally
broken.

Does this work for you?

    $ (printf 'VSL\0' | cat - some_extracted_file) >some_fixed_file
    $ varnishlog -r some_fixed_file

Dridi


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to