logforward/logforward.sh

7 lines
428 B
Bash
Raw Normal View History

2018-06-30 18:01:14 +00:00
#!/bin/sh
2018-07-01 13:36:31 +00:00
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 root -k $3 -b 100000000
done