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.

7 lines

  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 -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