This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
обработка_лог_файлов_сервера_squid [2014/03/11 11:31] val [Ubuntu] |
обработка_лог_файлов_сервера_squid [2014/09/26 16:05] val [FreeBSD] |
||
---|---|---|---|
Line 16: | Line 16: | ||
</code><code> | </code><code> | ||
... | ... | ||
- | access_log /var/squid/logs/access.log.0 | + | access_log /var/log/squid/access.log.0 |
... | ... | ||
- | output_dir /usr/local/www/apache22/data/sarg | + | output_dir /usr/local/www/apache24/data/sarg |
... | ... | ||
charset Koi8-r | charset Koi8-r | ||
Line 24: | Line 24: | ||
</code><code> | </code><code> | ||
[gate:~] # squid -k rotate | [gate:~] # squid -k rotate | ||
+ | |||
+ | [gate:~] # setenv LANG ru_RU.KOI8-R | ||
[gate:~] # sarg | [gate:~] # sarg | ||
Line 38: | Line 40: | ||
/usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -exec rm -r {} \; | /usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -exec rm -r {} \; | ||
/usr/local/sbin/squid -k rotate | /usr/local/sbin/squid -k rotate | ||
+ | export LANG=ru_RU.KOI8-R | ||
/usr/local/bin/sarg | /usr/local/bin/sarg | ||
</code><code> | </code><code> | ||
Line 51: | Line 54: | ||
/usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -delete | /usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -delete | ||
/usr/local/sbin/squid -k rotate | /usr/local/sbin/squid -k rotate | ||
+ | export LANG=ru_RU.KOI8-R | ||
/usr/local/bin/sarg | /usr/local/bin/sarg | ||
</code><code> | </code><code> |