made logforward.sh parameter driven
This commit is contained in:
parent
6f03a0fd53
commit
7909a17fbf
|
@ -1,11 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
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
|
trap 'echo oh, I am slain; exit' INT
|
||||||
|
while true; do
|
||||||
#!/bin/sh
|
#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
|
||||||
#trap 'echo oh, I am slain; exit' INT
|
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
|
||||||
#while true; do
|
done
|
||||||
# DATE=`date +"%Y%m%d%H%M"`
|
|
||||||
# echo "starting new logfile `hostname`-$DATE"
|
|
||||||
# ./timelimit -t10800 -T5 varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' > log/`hostname`-$DATE.log
|
|
||||||
# (gzip log/`hostname`-$DATE.log ; scp log/*.gz an@backup01.scn.chefkoch.net:/srv/logfiles_seo ; rm log/*.gz) &
|
|
||||||
#done
|
|
||||||
|
|
Loading…
Reference in New Issue