Skip to content

logs manager #8457

Answered by quer0016
quer0016 asked this question in Q&A
May 6, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

I have managed to find a solution, I leave you the script that performs all the configuration in case anyone is interested, in addition to defining the threshold to rotate logs in case of exceeding a threshold, a second threshold can be configured to stop services in case the threshold is reached

# Realizado por: Alejandro Sánchez
# Correo: [email protected]
# Empresa: Quersystem

# Solicitar al usuario el tamaño máximo del archivo de log para comprimir
read -p "Ingrese el tamaño minimo del archivo de log para que se comprima, configuración de rotaje diario (por ejemplo, 1G): " SIZE

# Solicitar al usuario el número máximo de rotaciones que se mantendran en la ejecución diaria
read -…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@quer0016
Comment options

Answer selected by quer0016
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants