• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

rebuild_awstats.sh will fail on IP v6 Clients

Fabian_Hahn

New Pleskian
The script to rebuild AWstats will fail if the first client to hit the server is from an IP v6 address.

This change will fix the problem:

log_first_rec_dtime=`head -n 1 $http_log | awk -F'[[/:]' '{print $3,$2,$4}'`
log_first_rec_dtime=`head -n 1 $http_log | awk '{print $4}' | awk -F'[[/:]' '{print $3,$2,$4}'`

Cheers,
Fabian
 
Back
Top