From 0255becce86fb8bd26a787be13c6fa478a05cf39 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 6 Sep 2023 07:11:04 -0400 Subject: [PATCH] =?UTF-8?q?Configura=C3=A7=C3=A3o=20para=20log=20com=20log?= =?UTF-8?q?rotate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logrotate.d/abd-agi | 8 ++- .../logrotate.d/agentesrt | 8 ++- .../logrotate.d/agi-bin | 34 ++++++----- .../hdaux_utilitarios_scripts/logrotate.d/ami | 8 ++- .../hdaux_utilitarios_scripts/logrotate.d/api | 8 ++- .../logrotate.d/cnvrtd | 8 ++- .../logrotate.d/discador | 10 +++- .../logrotate.d/diverso | 23 +++++--- .../logrotate.d/integracao | 8 ++- .../logrotate.d/manutencaoDB | 8 ++- .../logrotate.d/prevenda | 8 ++- .../logrotate.d/relatorio | 56 ++++++++++--------- .../logrotate.d/retorno_abandonada | 8 ++- .../logrotate.d/supervisor | 8 ++- 14 files changed, 143 insertions(+), 60 deletions(-) diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/abd-agi b/asterisk/hdaux_utilitarios_scripts/logrotate.d/abd-agi index f112c846..f372774b 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/abd-agi +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/abd-agi @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/abd_agi*.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/agentesrt b/asterisk/hdaux_utilitarios_scripts/logrotate.d/agentesrt index 974ea5e0..1e5d62e7 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/agentesrt +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/agentesrt @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/agentesrt*.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/agi-bin b/asterisk/hdaux_utilitarios_scripts/logrotate.d/agi-bin index ebf56614..2bf7070c 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/agi-bin +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/agi-bin @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/pbx_info-agente.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -16,7 +22,7 @@ /var/log/asterisk/ast_transbordo.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -31,7 +37,7 @@ /var/log/asterisk/bina_tronco.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -46,7 +52,7 @@ /var/log/asterisk/disa.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -63,7 +69,7 @@ /var/log/asterisk/callback.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -78,7 +84,7 @@ /var/log/asterisk/chefe-secretaria { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -93,7 +99,7 @@ /var/log/asterisk/monitor_0800.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -108,7 +114,7 @@ /var/log/asterisk/pbx_complemento.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -122,7 +128,7 @@ /var/log/asterisk/pesquisa_ura.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -136,7 +142,7 @@ /var/log/asterisk/piperun_request.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -151,7 +157,7 @@ /var/log/asterisk/pre-pago { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -166,7 +172,7 @@ /var/log/asterisk/prioridade_fila.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -181,7 +187,7 @@ /var/log/asterisk/facilidades_callcenter.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -197,7 +203,7 @@ /var/log/asterisk/indisponibilidade.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/ami b/asterisk/hdaux_utilitarios_scripts/logrotate.d/ami index bcf6fc19..22267b8c 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/ami +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/ami @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/log_ami_*.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/api b/asterisk/hdaux_utilitarios_scripts/logrotate.d/api index 1b96c8ca..aaa95e3b 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/api +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/api @@ -1,8 +1,14 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/api.log /var/log/asterisk/ChamadaRamal.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/cnvrtd b/asterisk/hdaux_utilitarios_scripts/logrotate.d/cnvrtd index fad322fb..9b40dc4e 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/cnvrtd +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/cnvrtd @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/cnvrtd.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/discador b/asterisk/hdaux_utilitarios_scripts/logrotate.d/discador index c02d38d1..a2d5e6f5 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/discador +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/discador @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/discadorclient.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -17,7 +23,7 @@ /var/log/asterisk/ld_listaDiscador.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/diverso b/asterisk/hdaux_utilitarios_scripts/logrotate.d/diverso index 28a1ec6f..757e9650 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/diverso +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/diverso @@ -1,8 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX /var/log/asterisk/consolidaVendas.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -17,7 +22,7 @@ /var/log/asterisk/corrige_abandon_transbordo.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -33,7 +38,7 @@ /var/log/asterisk/lista_negra_cad.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -48,7 +53,7 @@ /var/log/asterisk/log_erro_pabx.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -63,7 +68,7 @@ /var/log/asterisk/portabilidade.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -79,7 +84,7 @@ /var/log/asterisk/resumo-cdr.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -96,7 +101,7 @@ /var/log/asterisk/televendas_bloqueio.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -113,7 +118,7 @@ /var/log/asterisk/whatsapp_request.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -129,7 +134,7 @@ /var/log/asterisk/workflow.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/integracao b/asterisk/hdaux_utilitarios_scripts/logrotate.d/integracao index 6c0c7786..53d49a06 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/integracao +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/integracao @@ -1,9 +1,15 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/integracao.log /var/log/asterisk/IntegracaoRedir.log /var/log/asterisk/encerra_chamada_satelitenorte.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/manutencaoDB b/asterisk/hdaux_utilitarios_scripts/logrotate.d/manutencaoDB index aec25316..b917b6de 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/manutencaoDB +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/manutencaoDB @@ -1,9 +1,15 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/importa_bilhetes_dacs.log /var/log/asterisk/simples_vacuum.log /var/log/asterisk/manutencao_simples.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/prevenda b/asterisk/hdaux_utilitarios_scripts/logrotate.d/prevenda index af261dbd..724197a5 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/prevenda +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/prevenda @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/clienteFile.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/relatorio b/asterisk/hdaux_utilitarios_scripts/logrotate.d/relatorio index a4e3a8cb..7d020690 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/relatorio +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/relatorio @@ -1,8 +1,14 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/relatorio_abandonadasFilaDetalhes.log /var/log/asterisk/relatorio_abandonadasFila.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -18,7 +24,7 @@ /var/log/asterisk/relatorio_chamadasEntrantesGeral.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -34,7 +40,7 @@ /var/log/asterisk/relatorio_chamadasRamal.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -49,7 +55,7 @@ /var/log/asterisk/relatorio_desempenhoOperacao.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -64,7 +70,7 @@ /var/log/asterisk/relatorio_filaContexto.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -79,7 +85,7 @@ /var/log/asterisk/relatorio_listaUsuarios.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -95,7 +101,7 @@ /var/log/asterisk/relatorio_metricasDiaria.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -111,7 +117,7 @@ /var/log/asterisk/relatorio_metricasDiaSemana.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -127,7 +133,7 @@ /var/log/asterisk/relatorio_originadasAgente.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -142,7 +148,7 @@ /var/log/asterisk/relatorio_pausasDetalhado.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -157,7 +163,7 @@ /var/log/asterisk/relatorio_pbxResumoFone.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -173,7 +179,7 @@ /var/log/asterisk/relatorio_pesquisaRel.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -189,7 +195,7 @@ /var/log/asterisk/relatorio_recebidasAgente.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -204,7 +210,7 @@ /var/log/asterisk/relatorio_recebidasDDD.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -219,7 +225,7 @@ /var/log/asterisk/relatorio_relAgenteHoras.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -235,7 +241,7 @@ /var/log/asterisk/relatorio_relAgenteProducao.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -251,7 +257,7 @@ /var/log/asterisk/relatorio_RelChamadasVenda.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -269,7 +275,7 @@ /var/log/asterisk/relatorio_relClassificacaoMensal.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -285,7 +291,7 @@ /var/log/asterisk/relatorio_RelComissao.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -301,7 +307,7 @@ /var/log/asterisk/relatorio_relDesligamento.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -318,7 +324,7 @@ /var/log/asterisk/relatorio_relMsgWhatsapp.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -334,7 +340,7 @@ /var/log/asterisk/relatorio_relSemRetorno.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -351,7 +357,7 @@ /var/log/asterisk/relatorio_relTrasfAgente.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -368,7 +374,7 @@ /var/log/asterisk/relatorio_saintesCentroCusto.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y @@ -384,7 +390,7 @@ /var/log/asterisk/relatorio_uraDesempenho.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/retorno_abandonada b/asterisk/hdaux_utilitarios_scripts/logrotate.d/retorno_abandonada index da21999a..70c71763 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/retorno_abandonada +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/retorno_abandonada @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/rad.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y diff --git a/asterisk/hdaux_utilitarios_scripts/logrotate.d/supervisor b/asterisk/hdaux_utilitarios_scripts/logrotate.d/supervisor index 9caef043..b98fbbab 100644 --- a/asterisk/hdaux_utilitarios_scripts/logrotate.d/supervisor +++ b/asterisk/hdaux_utilitarios_scripts/logrotate.d/supervisor @@ -1,7 +1,13 @@ +# é mudado o rotate +# Para não ser mudado o rotate remova +# o cometário abaixo ou mude a string + +# auto_logrotate_licenca_PABX + /var/log/asterisk/ssupervisor.log { daily - rotate 365 + rotate 186 create 0640 pbx pbx dateext dateformat -%d-%m-%Y