You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logforward.sh 458B

123456
  1. #!/bin/sh
  2. trap 'echo oh, I am slain; exit' INT
  3. while true; do
  4. #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
  5. varnishncsa -F '%{X-Forwarded-Proto}i %{X-Real-IP}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
  6. done