Koozali.org: home of the SME Server

Other Languages => Italiano => Topic started by: simone686 on May 07, 2010, 06:00:38 PM

Title: Rotazione file log
Post by: simone686 on May 07, 2010, 06:00:38 PM
salve a tutti..
ho installato coovachilli per realizzare un piccolo hotspot wifi..ora per rispettare la legge pisanu dovrei conservare i dati di accesso degli utenti per sei mesi..
quali sono le durate standard dei file di log tipo accounting.log/radius.log ?
Title: Re: Rotazione file log
Post by: Stefano on May 07, 2010, 06:05:40 PM
ciao e benvenuto

Code: [Select]
[root@srvsrv logrotate.d]# cat radiusd
# You can use this to rotate the /var/log/radius/* files, simply copy
# it to /etc/logrotate.d/radiusd

# There are different detail-rotating strategies you can use.  One is
# to write to a single detail file per IP and use the rotate config
# below.  Another is to write to a daily detail file per IP with:
#     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
# (or similar) in radiusd.conf, without rotation.  If you go with the
# second technique, you will need another cron job that removes old
# detail files.  You do not need to comment out the below for method #2.

il file non รจ templatizzato:
Code: [Select]
[root@srvsrv radius]# cd /etc/e-smith/templates/etc/logrotate.d/
[root@srvsrv logrotate.d]# ls
clamscan  httpd  mysqld  proftpd  syslog

rinnovo il "benvenuto" e ti faccio le solite raccomandazioni:
- leggi BENE la documentazione
- usa il search prima di postare
- "segnati" nello sticky post "[OT] dove siamo?", grazie