From 53d6fdcf95d312144f768488c61f2f2d393b5a41 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 2 Jul 2018 15:16:27 +0200 Subject: [PATCH] added content-type header to logfile format --- logforward.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logforward.sh b/logforward.sh index b4148ca..12c621e 100644 --- a/logforward.sh +++ b/logforward.sh @@ -2,5 +2,5 @@ trap 'echo oh, I am slain; exit' INT while true; do #varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' | logforward -h backup01.scn.chefkoch.net:22 -p /srv/logfiles_seo/webxx- -u root -k /etc/varnish/id_rsa_lf -b 100000000 - varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' | logforward -h $1 -p $2 -u $3 -k $4 -b 100000000 + varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b %{Content-Type}o "%{Referer}i" "%{User-agent}i"' | logforward -h $1 -p $2 -u $3 -k $4 -b 100000000 done