Quellcode durchsuchen

fix: update log format instructions for legacy and modern Squid deployments in README files

Manuel vor 4 Monaten
Ursprung
Commit
aec0b74b22
2 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. 4 3
      README.md
  2. 4 3
      README_es.md

+ 4 - 3
README.md

@@ -218,9 +218,7 @@ installation, or when Squid is behind another NAT device, the operation must
 run on the host that actually maintains those states; otherwise, client
 connections cannot be closed by IP address.
 
-> **Note:** If your Squid proxy **does not use user authentication** (i.e., you do not use login or password for clients), you can keep the **default log format** that comes with Squid. The detailed format below is only required for full compatibility with user-based reports.
-
-- ⚠️ !!Important (Only work before version 7.1) ⚠️ For compatibility with user logs, use this format in /etc/squid/squid.conf:
+- ⚠️ !!Important (Only works before version 7.1) ⚠️ For legacy Squid deployments, use this `detailed` log format in `/etc/squid/squid.conf` when running Squid older than 7.1:
 
 ```bash
   logformat detailed \
@@ -229,6 +227,9 @@ connections cannot be closed by IP address.
   access_log /var/log/squid/access.log detailed
 ```
 
+- SquidStats also supports the default Squid log format for newer deployments. For Squid 7.x and later, continue using the standard default log format.
+- In fact, current SquidStats supports `detailed` format for legacy Squid versions before 7.x and the default format for any Squid version starting from the 3.5x line and later.
+
 #### 🔧 Cache Manager Configuration (Critical for SquidStats)
 
 **SquidStats requires proper Cache Manager configuration to function correctly.** Please follow the [official Squid Cache Manager documentation](https://wiki.squid-cache.org/Features/CacheManager/Index) for complete setup.

+ 4 - 3
README_es.md

@@ -216,9 +216,7 @@ instalación Docker o con Squid detrás de otro NAT, debe ejecutarse en el host
 que realmente mantiene esos estados; de lo contrario no se podrán cerrar las
 conexiones del cliente por IP.
 
-> **Nota:** Si tu proxy Squid **no usa autenticación de usuario** (es decir, no usas login o contraseña para clientes), puedes mantener el **formato de log por defecto** que viene con Squid. El formato detallado de abajo solo es requerido para compatibilidad completa con reportes basados en usuarios.
-
-- ⚠️ !!Importante solo funciona antes de la version 7.1 ⚠️ Para compatibilidad con logs de usuarios, usa este formato en /etc/squid/squid.conf:
+- ⚠️ !!Importante solo funciona antes de la versión 7.1 ⚠️ Para despliegues legacy de Squid, usa este formato en `/etc/squid/squid.conf` cuando el servidor sea anterior a la versión 7.1:
 
 ```bash
   logformat detailed \
@@ -227,6 +225,9 @@ conexiones del cliente por IP.
   access_log /var/log/squid/access.log detailed
 ```
 
+- SquidStats también soporta el formato de log por defecto de Squid para despliegues más modernos. Para Squid 7.x y posteriores, utiliza el formato `default` estándar.
+- De hecho, la versión actual de SquidStats soporta `detailed` para Squid legacy (antes de 7.x) y el formato `default` para cualquier Squid desde la línea 3.5x en adelante.
+
 #### 🔧 Configuración del Cache Manager (Crítico para SquidStats)
 
 **SquidStats requiere una configuración adecuada del Cache Manager para funcionar correctamente.** Por favor sigue la [documentación oficial del Cache Manager de Squid](https://wiki.squid-cache.org/Features/CacheManager/Index) para una configuración completa.