how can I read old varnish logs?
John Cherouvim
jc at eworx.gr
Mon Aug 28 16:39:00 CEST 2017
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 <jc at eworx.gr> wrote:
>
>>> 00000000 12 00 00 4c 63 b6 4e 40 72 65 71 20 35 31 35 38 |...Lc.N at 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
>
More information about the varnish-misc
mailing list