2009/1/16 ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ <[email protected]>:
>> pastikan log squidnya di rotasi saat pergantian hari. dan sarg
>> dijalankan saat prerotate. misal nih, dari paket debian, dia install
>> konfigurasi logrotate spt ini:
>>
>> /var/log/squid/*.log {
>>        daily
>>        compress
>>        delaycompress
>>        rotate 7
>>        missingok
>>        nocreate
>>        sharedscripts
>>        prerotate
>>                test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint
>>        endscript
>>        postrotate
>>                test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
>>        endscript
>> }
>>
>>
>> -cecep-
>>
>
> ini logrotate saya
> #
> #       Logrotate fragment for squid.
> #
> /var/log/squid/*.log {
>        daily
>        compress
>        delaycompress
>        rotate 2
>        missingok
>        nocreate
>        sharedscripts
>        prerotate
>                test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports
>        endscript
>        postrotate
>                test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
>        endscript
> }
>
> apa yang harus dirubah ya ?

dibaca lagi baris ini, "pastikan log squidnya di rotasi saat
pergantian hari" jadi tanggal yang hari kemarin tidak masuk lagi ke
access log hari ini. dan seterusnya.

-cecep-

Kirim email ke