Log rotation is not functioning properly for multi-instance Splunk TAs.
@artemrys ya está trabajando en esto.
Desde el 3/1/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Description:
Log rotation is not functioning properly for multi-instance Splunk TAs.(This may be considered an ENHANCEMENT) and gets rotated multiple times and out-of-time by different inputs. I think this issue is happening since each input is a separate process in multi-instance mode while in single-instance the log instance is singleton between all threads (inputs). We've received some customer issues regarding the same.
Steps to reproduce:
- Create multiple TA inputs that support multi-instance configurations (e.g., TA with multi-instance options like Snow, Remedy, Box). Let the log file threshold to reach (25 MB by default).
- Check the log files:
- If more than five inputs are enabled, five backup log files are created at the same time.
- If fewer than five inputs are enabled, the number of backup log files created corresponds to the number of enabled inputs.
Expectation:
Only one backup log file (.log.1) should be created when the log file reaches the maxBytes limit.
Actual:
When the .log file first time reaches the maxBytes limit, each process/input tries to rotate the logs files individually (.log.1, .log.2, .log.3, .log.4, .log.5), instead of rotating just one log file (.log.1). If more than five inputs are enabled, five backup log files are created at the same time; if fewer than five inputs are enabled, the number of backup log files created corresponds to the number of enabled inputs.
- Lenguaje dominante
- Python
- Estrellas
- 18
- Forks
- 10
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de splunk/addonfactory-solutions-library-python
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
splunk/addonfactory-solutions-library-python#334 · 6 comentarios ·
-
TypeError when getting passwords Abiertobug
splunk/addonfactory-solutions-library-python#311 · 2 comentarios · 1 asignado ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
-
Add Contributing Guidelines Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
Todos los issues de splunk/addonfactory-solutions-library-python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
gradio-app/gradio#13895 ·
Los mantenedores suelen responder en 1 día
-
build-error
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
spack/spack-packages#6713 ·
Los mantenedores suelen responder en 1 día
-
Use issue templates Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ActivityWatch/activitywatch#1464 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search results Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bytedance/trae-agent#483 ·
Los mantenedores suelen responder en 1 día