FILE/PERIOD CREATION DATE USERS BYTES AVERAGE
27Jan2009-27Jan2009 Tue Jan 27 09:00:03 EST 2009 51 173.30M 3.39M
26Jan2009-27Jan2009 Tue Jan 27 07:00:01 EST 2009 5 348.31M 69.66M
26Jan2009-26Jan2009 Mon Jan 26 23:30:01 EST 2009 3 204.01M 68.00M
25Jan2009-26Jan2009 Mon Jan 26 07:00:03 EST 2009 11 309.06M 28.09M
25Jan2009-25Jan2009 Mon Jan 26 00:00:02 EST 2009 11 308.00M 28.00M
24Jan2009-25Jan2009 Sun Jan 25 07:00:02 EST 2009 13 171.40M 13.18M
kalau di liat2 selalu rotasinya di jam 7
kenapa yah ?
bisa kah itu di setting per jam 00 ?
r...@castor:/etc/sysconfig/htb# cat /etc/logrotate.d/squid
#
# 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
}
On Fri, Jan 16, 2009 at 3:05 PM, Cecep Mahbub <[email protected]> wrote:
> 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-
>
--
-=-=-=-=
Personal Blog http://my.blog.or.id ( lagi belajar )
Hot News !!! : Pengin punya Layanan SMS PREMIUM ? Contact me ASAP.
dapatkan Share revenue MAXIMAL tanpa syarat traffic...
--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [email protected]
Arsip dan info milis selengkapnya di http://linux.or.id/milis