Note for users running our daily updates and log maintenance script:
If you're using the script from this guide, please make sure to update it to exclude cpf_logs directories from log rotation. These logs are managed automatically by the LogSpot module, and external truncation could interfere with analytics accuracy.
You can exclude them by adjusting the find command like this:
/usr/bin/find /var/www \
-path "*/cpf_logs/*" -prune -o \
\( -name "*.log" -o -name "*_log" \) -size +5M -type f -exec sh -c '
for file; do
tail -c 5M "$file" | /usr/bin/sponge "$file"
done
' sh {} +
The script on our GitHub Gist has been updated to reflect this change. Make sure to grab the latest version if you're using LogSpot.