This commit is contained in:
Andreas Neue 2018-07-02 13:46:39 +02:00
parent 33aefc1d25
commit 21df295030
2 changed files with 2 additions and 2 deletions

View File

@ -2,5 +2,5 @@
trap 'echo oh, I am slain; exit' INT trap 'echo oh, I am slain; exit' INT
while true; do 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 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 root -k $3 -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
done done

View File

@ -42,7 +42,7 @@ func main() {
fmt.Printf("%s\n", err.Error()) fmt.Printf("%s\n", err.Error())
l := []byte(log) l := []byte(log)
gzipAndSend(l) gzipAndSend(l)
return break
} else { } else {
log += line log += line
fmt.Printf("%d\r", len(log)) fmt.Printf("%d\r", len(log))